class F { public static void main(String[] args){ try { int a=10,b=0,c; c=a/b; System.out.println(c); } catch(Exception a) { System.out.println("error found "); } try { int a[] ={10,20,30}; System.out.println(a[3]); } catch(ArrayIndexOutOfBoundsException b) { System.out.println("error found "); } } }