View RSS Feed

Recent Blogs Posts

  1. Class InetAddress

    by , 04-25-2012 at 10:27 PM
    Certain methods are provided by this class to access the IP addresses & hostnames.
    InetAddress objects are created by using these methods.

    Static InetAddress getLocalHost() throws UnknownHostException For the local machine, InetAddress is returned by this method.

    Static InetAddress getByName(String host) throws UnknownHostException For specified hostname, InetAddress object is returned by this method. Hostname could either be an IP like or pneumonic ...