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