What will be the output of the program?try { int x = 0; int y = 5 / x; } catch (Exception e) { System.out.println('Exception'); } catch (ArithmeticException ae) { System.out.println(' Arithmetic Exception'); } System.out.println('finished'); - Study24x7
Social learning Network
23 Feb 2023 04:44 PM study24x7 study24x7

What will be the output of the program?try {...

See more

A

finished

B

Exception

C

Compilation fails.

D

Arithmetic Exception

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles