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
What is the use of network interface?
What do you understand by the term network?
Tell me about networking classes and interfaces.
Explain a time server?
What is a thread pool?
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.
What is HttpURL connection ?
What you know about random port?
What is the Difference between socket and servlet?
What are the advantages and disadvantages of sockets?
What is socket in java?
Where is the network interface card located?
Why socketutil is used?
Public serversocket(int port, int queuelength) throws ioexception, bindexception?
What is a listener in networking?