5 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("sanfoundary.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

Overall Stats

Attempted 80
Correct 32
Incorrect 9
Viewed 39

Answers

Guest
Guest
Serkie Mekonnen
Serkie Mekonnen - 4 days ago

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

Tsega Asresa Mengistu
Tsega Asresa Mengistu - 4 days ago

Tsega Asresa Mengistu from Dessie, Ethiopia is saying true is correct answer

Vaibhav Bisht
Vaibhav Bisht - 4 weeks ago

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

Kaneez Khadija
Kaneez Khadija - 2 months ago

Kaneez Khadija from Gujranwala, Pakistan is saying 1 is correct answer

Roaa yaseen
Roaa yaseen - 2 months ago

Roaa yaseen from Palestine is saying true is correct answer

Related Questions

Which of these methods is used to make raw MIME formatted string?

  • [A] parse()
  • [B] toString()
  • [C] getString()
  • [D] parseString()

Which of these is a full form of DNS?

  • [A] Data Network Service
  • [B] Data Name Service
  • [C] Domain Network Service
  • [D] Domian Name Service