1.

What is the output of this program?
import java.net.*;
public class Networking_Example
{
public static void main(String[] args) throws MalformedURLException
{
URL object = new URL("https://www.interviewmania.com/programming");
System.out.print(object.toExternalForm());
}
}

A. www.interviewmania.com/programming
B. www.interviewmania.com
C. https://www.interviewmania.com/programming
D. https://www.interviewmania.
E. None of these
Answer» D. https://www.interviewmania.


Discussion

No Comment Found

Related MCQs