If I Write Return At The End Of The Try Block, Will The Finally Block Still Execute

If I Write Return At The End Of The Try Block, Will The Finally Block Still Execute


  • 29 Dec, 2011

    Yes even if you write return as the last statement in the try block and no exception occurs, the finally block will execute. The finally block will execute and then the control return.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.