6 years ago in Java Socket Programming

What is the output of this program?


import java.net.*;
class networking {
public static void main(String[] args) throws UnknownHostException {
InetAddress obj1 = InetAddress.getByName("cisco.com");
InetAddress obj2 = InetAddress.getByName("sanfoundary.com");
boolean x = obj1.equals(obj2);
System.out.print(x);
}
}

[A] 0
[B] 1
[C] true
[D] false
Loading...
Next Question

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 86
Correct 33
Incorrect 8
Viewed 45

Answers

Guest
Guest
atish lohade
atish lohade - 9 months ago

atish lohade from Aurangabad, India is saying false is correct answer

Bharath
Bharath - 9 months ago

Bharath from Hyderabad, India is saying false is correct answer

shubham adne
shubham adne - 11 months ago

shubham adne from Pune, India is saying false is correct answer

Serkie Mekonnen
Serkie Mekonnen - 1 year ago

Serkie Mekonnen from Dessie, Ethiopia is saying false is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 year ago

Vaibhav Bisht from Dehradun, India is saying false is correct answer

Related Questions

Which of these class is used to encapsulate IP address and DNS?

  • [A] DatagramPacket
  • [B] URL
  • [C] InetAddress
  • [D] ContentHandler