Hi
yes ,i have tried many other examples -IOException,MalformedURLException .
I hv given one in my Ques.
This is one more :
import java.net.*;class ExceptionDemo1
{
public static void main(
String args[]){
try{
URL url=new URL("http://yahoo.com");
}
catch(Exception e)
{System.out.println("caght");}
finally
{System.out.println("finally");}
}}
Actually ,my query is: try -finally thing doesnt work with Checked exceptions,but works for Unchecked.
But This thing not mentioned anywhere .Only thing i could find is :try-catch or finally
thnx