All About Class UnknownHostException in Java

UnknownHostException is thrown from an application to indicate that the IP address of the host could not be determined like that host name does not matches with any of the known hosts.

 The class structure of UnknownHostException is written below:


public class java.io.UnknownHostException extends java.lang.IOException{
//constructor
public UnknownHostException();
//constructs an empty UnknownHostException object that is an object with no message specified.
public UnknownHostException(String message);
//constructs an UnknownHostException object with the message specified.

}
 
All About Class UnknownHostException in Java All About Class UnknownHostException in Java Reviewed by Animesh Chatterjee on September 24, 2018 Rating: 5

No comments:

Powered by Blogger.