

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program? class exception_handling { static void throwexception() throws ArithmeticException { System.out.print("0"); throw new ArithmeticException ("Exception"); } public static void main(String args[]) { try { throwexception(); } catch (ArithmeticException e) { System.out.println("A"); } } } |
A. | A |
B. | 0 |
C. | 0A |
D. | Exception |
Answer» D. Exception | |