MalformedURLException and UnknownHostException

Explain briefly when the MalformedURLException and UnknownHostException throws?

E

Expert

Verified

Whenever the particular URL is not joined then the URL throws MalformedURLException and when InetAddress techniques getByName and getLocalHost are not capable to determine the host name then they throw an UnknownHostException.

   Related Questions in Computer Networking

©TutorsGlobe All rights reserved 2022-2023.