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. 

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

1 Expert Approved Answer
Step: 1 Unlock

lets analyze the code and the output is given below 1 In the try block ther... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!