InetAddress class the method that returns the host name of the IP Address - Basic concept of Networking

Q.  In InetAddress class which method returns the host name of the IP Address?
- Published on 10 Jul 15

a. public String getHostName()
b. public String getHostAddress()
c. public static InetAddress getLocalHost()
d. None of the above

ANSWER: public String getHostName()

Post your comment / Share knowledge

Enter the code shown above:
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)