Program with try catch blocks2967 - Java Quiz Question


public class Exception4 {
    void m() {
    }
    void n()  {
        m();
    }
    void p() {
        try {
            n();
        } catch (Exception e) {
            System.out.println("exception handled");
        }
    }
    public static void main(String args[]) {
        Exception4 obj = new Exception4();
        obj.p();
        System.out.println("normal flow");
    }
}


A
exception handled
normal flow
B
normal flow
C
Some other output
D
Compilation Error or Runtime Error