The finally clause in the try-catch exeception block always executes, irrespective of the occurence of exeception. This is applicable for the normal java program flow. If the execution flow is stopped irreversibly before the finally clause, then the finally block will not be executed.
System.exit(0) in the try block doesn't executes the finally block.
No comments:
Post a Comment