Input
Output
public class Nestedtryblock{ public static void main(String args[]){ try{ try{ int b =1/0; }catch(ArithmeticException e){ System.out.println(e); } try{ int num[] = {1, 2, 3, 4}; System.out.println(num[5]); }catch(ArrayIndexOutOfBoundsException e){ System.out.println(e); } System.out.println("Try block is sucessfully executed"); } catch(Exception e){ System.out.println("Exception"+e); } System.out.println("Code flow is normal"); } }