Home » JAVA Programming » Networking » Question
  1. What happens if IP Address of host cannot be determined?
    1. UnknownHostException is thrown
    2. Temporary IP Address is assigned
    3. The system exit with no message
    4. IOException is thrown
    5. None of these
Correct Option: A

UnknownHostException is thrown when IP Address of host cannot be determined. It is an extension of IOException.



Your comments will be displayed only after manual approval.