Q54
What will be the output of the following Java program? import java.net.*; class networking public static void main(String[] args) throws UnknownHostException InetAddress obj1 = InetAddress.getByName("example.com"); InetAddress obj2 = InetAddress.getByName("example.com"); boolean x = obj1.equals(obj2); System.out.print(x);
A.
0
B.
1
C.
true
AnswerD.
false
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board