81. Which of these class extend InputStream class?
82. Serializaed object can be transferred via network.
83. Which of these is a process of extracting/removing the state of an object from a stream?
84. 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.getContentType());
}
}
Note: Host URL is written in html and simple text.
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.getContentType());
}
}
Note: Host URL is written in html and simple text.
85. Which of these class is used to encapsulate IP address and DNS?
86. What does URL stands for?
87. Which of these data member of HttpResponse class is used to store the response from an http server?
88. Which of these method of httpd class is used to get report on each hit to HTTP server?
89. What will be the output of the following Java program?
import java.net.*;
class networking
{
public static void main(String[] args) throws MalformedURLException
{
URL obj = new URL("https://www.example.com/javamcq");
System.out.print(obj.toExternalForm());
}
}
import java.net.*;
class networking
{
public static void main(String[] args) throws MalformedURLException
{
URL obj = new URL("https://www.example.com/javamcq");
System.out.print(obj.toExternalForm());
}
}
90. Which of these is a protocol for breaking and sending packets to an address across a network?
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.