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
Why socketutil is used?
What is network interface name?
What is HttpURL connection ?
Explain look for local ports?
What are the advantages and disadvantages of java sockets.
How we can make simple java program for Server/Client Communication
Public serversocket(int port, int queuelength) throws ioexception, bindexception?
What is jhttp web server?
What do you understand by the term network?
What is the Difference between socket and servlet?
What is a thread pool?
Explain a time server?
Explain the generic term internet.
What is the main difference between Client side Java Script and and Server side Java Script how actually they run on both side with Example.
If you do not want your program to halt while it waits for a connection, put the call to accept( ) in a separate thread?