-
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);
}
}
-
- false
- true
- Interviewmania
- Interviewmania.com
- None of these
Correct Option: B
true