Tags


try{
    return 1;
}
finally{
    return 2;
}

From JPL 4th edition, when try block executes its reutrn,
the finally block is entered with the a value to return.

Finally would override "1" into "2" if it has a return statement.
If not, orig value "1" would be returned when exiting finally block.

Advertisements