1.

What is the output of this program?Note : Execution command line : $ java exception_handling class exception_handling { public static void main(String args[]) { try { int a = args.length; int b = 10 / a; System.out.print(a); } catch (ArithmeticException e) { System.out.println("1"); } } }

A. 0
B. 1
C. Compilation Error
D. Runtime Error
Answer» C. Compilation Error


Discussion

No Comment Found