If i use System.exit(0) in the try block or catch block will finally block will be executed?

Showing Answers 1 - 4 of 4 Answers

Amit Kumar

  • Feb 28th, 2006
 

no, it will not executed. But if u use return clause instead of System.exit(0), then the finally clause executed.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions