you have to handle the exception within finally block other wise it will come out of the block when it will encounter the exception.
public class j
{
public static void main(
String ar[])throws Exception
{
try{
m();
}
finally
{
try{
m();
}
catch(Exception e)
{
System.out.println ("Exception is handled here");
}
System.out.println ("inside finally block");
}
}
static void m()throws Exception
{
throw new Exception();
}
}