Home » JAVA Programming » Networking » Question
  1. Which of these class is used to encapsulate IP address and DNS?
    1. URL
    2. ContentHandler
    3. DatagramPacket
    4. InetAddress
    5. None of these
Correct Option: D

InetAddress class encapsulate both IP address and DNS, we can interact with this class by using name of an IP host.



Your comments will be displayed only after manual approval.