Zeb Rehman

Zeb Rehman

  • NA
  • 41
  • 72.9k

UnknowHostException

Feb 11 2012 2:26 AM
Hi everybody!
I'm writing a code in which i am reading url's from a file and then i want to check the ip address that they returns. but the problem is that when InetAddress.getByName("Url") is executed and the host is not found it show me the UnkownHostException and terminate the program. While i want it to continue it. How can i continue it if UnkownHostException occur. Thanks in advance.
Zeb-ur-Rehman.


Answers (3)