Question: 8. What will be the output of the following Java program? 1. class exception_handling public static void main(String args[]) 2. { 4. 5. min
8. What will be the output of the following Java program? 1. class exception_handling public static void main(String args[]) 2. { 4. 5. min 3. { try { int a, b; b = 0; a-5 / b; System.out.print("A"); catch (ArithmeticException e) 6. 7. 8. 9. 10. 11. } 12. 13. { 14. 15. } 16. 17. { 18. 19. 20. 21. } System.out.print("B"); finally System.out.print("C"); } }
Step by Step Solution
There are 3 Steps involved in it
lets analyze the code and the output is given below 1 In the try block ther... View full answer
Get step-by-step solutions from verified subject matter experts
