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