1.

Which of these classes is used to encapsulate IP address and DNS?(a) DatagramPacket(b) URL(c) InetAddress(d) ContentHandlerThis question was addressed to me during a job interview.Question is taken from UrI Class in section Namespaces, Preprocessors and Networking of C#

Answer»

Right ANSWER is (c) InetAddress

Explanation: InetAddress class encapsulates both IP ADDRESS and DNS, we can INTERACT with this class by USING the name of an IP host.



Discussion

No Comment Found

Related InterviewSolutions