If i write system.exit(0);at the end of try block is finally block will execute?

 Posted by aswinialuri-19361 on 6/14/2013 | Category: ASP.NET Interview questions | Views: 2078 | Points: 40
Answer:

No,the finally block can't execute in this case because when you mention system.exit(0);
the control goes out of the program and the finally block never execute.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response