1.

What is the output of this program?public class exceptionHandling_Example { public static void main(String args[]) { try { int n = args.length; int n1 = 9 / n; System.out.print(n); try { if (n == 1) n = n / n - n; if (n == 2) { int s = {1}; s[8] = 9; } } catch (ArrayIndexOutOfBoundException e) { System.out.println("Hello"); } catch (ArithmeticException e) { System.out.println("Java"); } } } }

A. Runtime Error
B. Compilation Error
C. First
D. Second
E. None of these
Answer» C. First


Discussion

No Comment Found

Related MCQs