Question: 9) public class Example19 { public static void main(String[] args) { try { method(); } catch (Exception e) { System.out.print(1); } System.out.println(2); } static void

 9) public class Example19 { public static void main(String[] args) {

9) public class Example19 { public static void main(String[] args) { try { method(); } catch (Exception e) { System.out.print("1"); } System.out.println("2"); } static void createException() { throw new ArrayIndexOutOfBoundsException(); 3 static void method() { try { createException(); System.out.print("3"); } catch(ArithmeticException ae) { System.out.print('4"); } finally { System.out.print('5'); } System.out.print('6')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!