1.

What is the output of this program?
import java.net.*;
public class networking_Example
{
public static void main(String[] args) throws UnknownHostException
{
InetAddress object = InetAddress.getByName("interviewmania.com");
System.out.print(object.getHostName());
}
}

A. Compile time error
B. Runtime error
C. Interviewmania
D. interviewmania.com
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs