Hello Shashank, well you placed a println statement in the finally block and it executes the statement and displays 3 in the output as expected.
In
java when you handle an exception, the program executes to completion. Why?...well simply because the catch block took care of the problem and it was NOT propagated to the main method to provoke a JVM shut down. HTH.
Regards
Ikpefua