1.

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

A. false
B. true
C. Interviewmania
D. Interviewmania.com
E. None of these
Answer» C. Interviewmania


Discussion

No Comment Found

Related MCQs