Rohit Ramachandran wrote:And, I still don't understand why "After finally" is not being printed. It should, because once the exception is caught and dealt with, shouldn't it move on to the next line of code?
Yes, the exception is caught and dealt with, but note the return statement in the catch block. Meaning that after the exception is dealt with (and the finally block is executed), the method returns.