try{
//My code..
}catch(UnknownHostException e) {
System.out.println("Host not found.");
}catch(IOException e) {
System.out.println("Incorrect username or password.");
}catch(Exception e) {
e.printStackTrace();
}I don't understand why catch statement is not catching UnknownHostexception, it is giving same error that java.net.UnknownHostEception (I have imported java.net.UnkonwnHostException class)..
Please help me how to figure out with this exception...

Help

