If a client is run, when the server is not up
Null Pointer Exception at client side
Client will receive warning message
ConnectException is thrown
Compilation Error
The assigned port at the server can be obtained in the client side by
getLocalPort() method
getActivePort() method
By pinging the server
By giving value 0 as port number
Which one of the following is not marker interface?
Serializable
Remote
Cloneable
List
Which algorithm is used in thread scheduling?
Fixed Priority
Round Robin
Discrete Optimization
None of the above
Which modifier tells JVM to avoid object persistence during serialization?
final
transient
public
private
What is the super class of Hashtable?
Map
HashMap
Dictionary
Vector
Main is the only thread that runs when a Java program is started?
True
False
Which of the following does not guarantee the order of data storage will be constant over a period of time?
ArrayList
Stack
Queue
Iterator for a collection will update along with the collection, when it is modified and give the updated one while traversing.
What is the result of compiling and running the following program? import java.util.Formatter; class Format2 { public static void main(String[] args) { String s="hello123"; Formatter f=new Formatter(); f.format("%S",s); System.out.println(f); } }
Prints "hello123"
Prints "HELLO123"
Compiler error
IllegalFormatException