1. Which of these is a return type of getAddress() method of DatagramPacket class?
2. How an object can become serializable?
3. Which of these is an interface for control over serialization and deserialization?
4. Which of these methods is used to know when was the URL last modified?
5. Which of these methods are used to find a URL from the cache of httpd?
6. Which of these class is necessary to implement datagrams?
7. What will be the output of the following Java program?
import java.net.*;
class networking
{
public static void main(String[] args) throws Exception
{
URL obj = new URL("https://www.example.com/javamcq");
URLConnection obj1 = obj.openConnection();
System.out.print(obj1.getLastModified);
}
}
Note: Host URL was last modified on june 18 tuesday 2013.
import java.net.*;
class networking
{
public static void main(String[] args) throws Exception
{
URL obj = new URL("https://www.example.com/javamcq");
URLConnection obj1 = obj.openConnection();
System.out.print(obj1.getLastModified);
}
}
Note: Host URL was last modified on june 18 tuesday 2013.
8. Which of these is a method of ObjectOutput interface used to finalize the output state so that any buffers are cleared?
9. Which of these methods is used to know the type of content used in the URL?
10. Which of these interface abstractes the output of messages from httpd?
Read More Section(Java Serialization and Networking)
Each Section contains maximum 100 MCQs question on Java Serialization and Networking. To get more questions visit other sections.