try { int[] arr = new int[5]; arr[10] = 3; } catch (ArithmeticException e) { System.out.println("Arithmetic exception."); } finally { System.out.println("Done."); }
Done Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 10 out of bounds for length 5