Is the following code valid?
InetAddress ad = InetAddress.getByName ("195.186.2.111");
Correct Answer: Yes
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
For a class defined inside a method, what rule governs access to the variables of the enclosing method?
How does the set collection deal with duplicate elements?
Which of these interfaces is the most applicable when creating a class that associates a set of keys with a set of values?
Can Java be used to send ICMP packets?
What would happen on compiling and running the following code? public class Test { public static void main (String args[]) { TestThread t = new TestThread (); t.setValue (5); t.start (); t.setValue (10); } } class TestThread extends Thread { private int value; synchronized public void setValue (int v) { value = v; } public void run () { System.out.println ('before: ' + value); setValue (50); System.out.println (after: ' + value); } }
Character literals are enclosed in ________; string literals are enclosed in ________.
By convention, a class diagram contains the ____ following each attribute or method.
Boolean values can be displayed as the words true and false with the ________ format specifier.
Before entering a loop, the first input statement, or ____, is retrieved.
Arguments to methods always appear within ________.