-
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());
}
}
-
- www.interviewmania.com/programming
- www.interviewmania.com
- https://www.interviewmania.com/programming
- https://www.interviewmania.
- None of these
Correct Option: C
toExternalForm() is used to know the full URL of an URL object.