Java finally block when return statement is encountered

In my last tutorial, we discussed about finally block, which is used with a try block and always execute whether exception occurs or not. Here we will see few examples to understand the behaviour of finally block when a return statement is encountered in try block.

Lets see this code snippet, What do you think? Will finally would execute even if there is a return statement in try block as well as in catch block?