61
What will be the output of the following Java program?
Note: Host URL is having length of content 127.
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.
Answer & Solution
Answer: Option
B
No explanation is given for this question. Let's Discuss on Board