When we have return statement both in try
and finally blocks, then first the return statement of try block gets
executed, the before the method returns, the statements in the finally
block will get executed and since there is return statement in finally
also, that will also get executed and the value that will be returned to
the caller will be the value returned from the finally block.
Posted in: