1.

What is the output of this program?public class exceptionHandling_Example { public static void main(String args[]) { try { throw new NullPointerException ("Hello"); System.out.print("First"); } catch(ArithmeticException e) { System.out.print("Second"); } } }

A. NullPointerException
B. ArithmeticException
C. Second
D. First
E. Runtime Error
Answer» F.


Discussion

No Comment Found

Related MCQs