Tuesday, November 29, 2011

Core Java Interview Questions :What if there is a break or return statement in try block followed by finally block?

If there is a return statement in the try block, the finally block executes right after the return statement encountered, and before the return executes.:If there is a break or return statement in try block.The statements before the break are executed in try block and it will go to final.The statements after the break are not executed.

No comments:

Post a Comment