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.
UnknowHostException
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sam HobbsRank #107 · 20.5K reputationPosted Feb 11, 2012, 12:53 AM EST
Zeb Rehman41 reputationPosted Feb 11, 2012, 1:06 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Feb 11, 2012, 1:35 AM EST
Java also has try / catch blocks but there are very few articles in this web site about Java.