Vidyalelo
Java Programming · Q84

Java Serialization and Networking

Programming · Java Programming · question 84

Q84

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.

A.
html
B.
text
C.
html/text
D.
text/html
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board