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");
System.out.print(obj1.getHostName());
}
}

[A] cisco
[B] cisco.com
[C] www.cisco.com
[D] None of the mentioned
Loading...
Next Question

Overall Stats

Attempted 117
Correct 22
Incorrect 27
Viewed 68

Answers

Guest
Guest
A.K Paranthama
A.K Paranthama - 3 weeks ago

A.K Paranthama is saying cisco.com is correct answer

Anvesh Verma
Anvesh Verma - 1 month ago

Anvesh Verma is saying None of the mentioned is correct answer

034-Karthik Manickam
034-Karthik Manickam - 1 month ago

034-Karthik Manickam is saying www.cisco.com is correct answer

atish lohade
atish lohade - 2 months ago

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

Bharath
Bharath - 2 months ago

Bharath from Hyderabad, India is saying www.cisco.com 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