1.

Which of the following classes is used to encapsulate IP address and DNS?(a) DatagramPacket(b) URL(c) InetAddress(d) ContentHandlerThe question was posed to me by my college professor while I was bunking the class.I'm obligated to ask this question of Fundamental of Networking topic in division Namespaces, Preprocessors and Networking of C#

Answer»

The correct ANSWER is (c) InetAddress

For 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