Behaviour of return statement in catch and finally

It is overridden by the one in finally, because finally is executed after everything else.

That’s why, a rule of thumb – never return from finally. Eclipse, for example, shows a warnings for that snippet: “finally block does not complete normally”

Leave a Comment