1.

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

A. 50
B. M
C. 50M
D. M50
E. None of these
Answer» D. M50


Discussion

No Comment Found

Related MCQs