Network Programming Question:

Download Job Interview Questions and Answers PDF

When MalformedURLException and UnknownHostException throws?

Network Programming Interview Question
Network Programming Interview Question

Answer:

When the specified URL is not connected then the URL throw MalformedURLException and If InetAddress? methods getByName and getLocalHost are unable to resolve the host name they throw an UnknownHostException.

Download Network Programming Interview Questions And Answers PDF

Previous QuestionNext Question
What information is needed to create a TCP Socket? What are the two important TCP Socket classes?