Q158
What will be the output of the following Java 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
AnswerD.
Exception
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board