1. Write the output of these code block without running class TestExcepRoute { public static void main(String [] args)
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Write the output of these code block without running class TestExcepRoute { public static void main(String [] args)
class TestExcepRoute { public static void main(String [] args) { try { method (): } catch (Exception e) { System.out.print('m'); } System.out.println('n'); } static void createException () { throw new Array IndexOutOfBoundsException(); } static void method () { try { } createException(); System.out.print('a'); } catch (ArithmeticException e) { System.out.print('b'); } finally { } System.out.print('d'); System.out.print('c');