1.

What does the java.net.InetAddress class represent?(a) Socket(b) IP Address(c) Protocol(d) MAC AddressI got this question by my school teacher while I was bunking the class.This interesting question is from Socket Programming in section Networking of Computer Network

Answer»

Correct OPTION is (B) IP Address

Best explanation: The java.net.InetAddress class represents IP Address of a particular specified host. It can be USED to RESOLVE the host name from the IP address or the IP address from the host name.



Discussion

No Comment Found

Related InterviewSolutions