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