Java Networking - Sockets and RMI Question:
Download Questions PDF

When MalformedURLException and UnknownHostException throws?

Java Networking - Sockets and RMI Interview Question
Java Networking - Sockets and RMI 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 Java Networking - Sockets and RMI Interview Questions And Answers PDF

Previous QuestionNext Question
What are the two important TCP Socket classes?What does RMI stand for?