Given the code fragments:


Given the code fragment:

Given code of Test.java file:
1. package com.udayan.ocp;
2.
3. public class Test {
4. private static void m1() throws Exception {
5. throw new Exception();
6. }
7.
8. public static void main(String[] args) {
9. try {
10. m1();
11. } finally {
12. System.out.println("A");
13. }
14. }
15. }
What will be the result of compiling and executing Test class?
© Copyrights Oracledumps 2025. All Rights Reserved
We use cookies to ensure that we give you the best experience on our website (Oracledumps). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the Oracledumps.