If I Write System.exit(0); At The End Of The Try Block, Will The Finally Block Still Execute

If I Write System.exit(0); At The End Of The Try Block, Will The Finally Block Still Execute


  • 29 Dec, 2011

    No. In this case the finally block will not execute because when you say System.exit(0); the control immediately goes out of the program, and thus finally never executes.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.