Confusing?? Just see the code belowThis will execute properly and the finally will work.No doubt.But what about the below code.
There is no question that the above code will throw an exception.Then the catch will get executed which contains a return statement.Will that return statement works properly and go back to the calling function?
The answer is NO. The finally will execute even the catch contains a return.