1.

What is the output of this program?public class ExceptionHandling_Example { static void throwexception() throws ArithmeticException { System.out.print("10"); throw new ArithmeticException ("Exception"); } public static void main(String args[]) { try { throwexception(); } catch (ArithmeticException e) { System.out.println("U"); } } }

A. 10U
B. 10
C. U
D. U10
E. None of these
Answer» B. 10


Discussion

No Comment Found

Related MCQs