-
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());
}
}
-
- Compile time error
- Runtime error
- Interviewmania
- interviewmania.com
- None of these
Correct Option: D
interviewmania.com