Which of these class is used to encapsulate IP address and DNS?
A. DatagramPacket
B. URL
C. InetAddress
D. ContentHandler
Answer:A
Which of these class is used to encapsulate IP address and DNS?
A. DatagramPacket B. URL C. InetAddress D. ContentHandler
Explanation: InetAddress class encapsulate both IP address and DNS, we can interact with this class by using name of an IP host.