Q59
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(); int len = obj1.getContentLength(); System.out.print(len); Note: Host URL is having length of content 127.
A.
126
B.
127
AnswerC.
Compilation Error
D.
Runtime Error
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board