Set - 5

Question 26 :

How do I convert a numeric IP address like 192.18.97.39 into a hostname like java.sun.com?

Answer :

String hostname = InetAddress.getByName("192.18.97.39").getHostName();