public class Nestedtryblocks {
public static void main(String[] args) {
try{
try{
int i = 55/0;
}catch (ArithmeticException e){System.out.println(e);}
try{
int arr[] = new int[5];
arr[5] = 7;
}catch (ArrayIndexOutOfBoundsException e){System.out.println(e);}
System.out.println("Normal flow executed inside part");
}catch (Exception e){System.out.println("handled");}
System.out.println("Normal flow executed outside part");
}
}