Inet Address class in java


The InetAddress class from java.net package which represent the IP address.It works with either host name or numerical IP address of   particular host.

InetAdress class in java programming language provide many useful methids for handling Ip address and host name.

Methods of InetAddress class in  java.net package in java language

Methods of InetAddress class

getLocalHost

getByName

getAllByname()


Source Code

Output of InetAddressClass in Java

InetAddressClass in Java
InetAddressClass in Java
(Visited 170 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image