What is Inet address?

Answer Posted / bhumika

It is a class in Java which represents an Internet Protocol
(IP) address. An instance of an InetAddress consists of an
IP address and possibly corresponding hostname.


The Class represents an Internet address as Two fields:
1- Host name(The String)=Contain the name of the Host.
2- Address(an int)= The 32 bit IP address.


This fields are not public, so we cant Access them directly.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is network interface name?

549


What are the advantages and disadvantages of sockets?

579


What is the Difference between socket and servlet?

797


What is an http redirector?

555


How we can make simple java program for Server/Client Communication

644






Explain the generic term internet.

598


What is a client tester?

583


To create a socket, you need to know the internet host to which you want to connect?

539


Public serversocket(int port, int queuelength) throws ioexception, bindexception?

685


What is socket in java?

634


Explain a time server?

596


What is network programming in java?

575


What is an http server?

548


Where is the network interface card located?

530


If you do not want your program to halt while it waits for a connection, put the call to accept( ) in a separate thread?

553