Answers

Question and Answer:

  Home  Java Networking - Sockets and RMI

⟩ When MalformedURLException and UnknownHostException throws?

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.

 135 views

More Questions for you: