If I write System.exit (0); at the end of the try block, will the finally block still execute ?

 Posted by Charugoel on 2/4/2009 | Category: .NET Framework Interview questions | Views: 10918

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.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Akiii on: 6/29/2011 | Points: 10
good one.....


Login to post response