1.

Which class represents an Internet Protocol address?(a) InetAddress(b) Address(c) IP Address(d) TCP AddressI had been asked this question in homework.This key question is from Client and Server in division Java Server Technologies & Servlet of Java

Answer»

Right ANSWER is (a) InetAddress

The explanation is: InetAddress represents an INTERNET PROTOCOL ADDRESS. It provides STATIC methods like getByAddress(), getByName() and other instance methods like getHostName(), getHostAddress(), getLocalHost().



Discussion

No Comment Found

Related InterviewSolutions