Originally posted by Mikael Jonasson:
Not entierly:
if there is a returnstatement in the catch-block, the final-block will run, but no code after it.
I'm not realy sure what happends if you put a return in the finalblock, except that it wont run any code after it.
The rule is that a return statement leaves the mathod directly. Directly however is redefined to mean that the finalblock will be executed.
The only way of leaving the method without running the finalblock would be to put the return in the try-block. Don't think the final-block will be runned then (am I wrong?)
/Mike