What is a finally block? Is there a case when finally will not execute?
Anonymous
Finally block is a block which always executes a set of statements. It is always associated with a try block regardless of any exception that occurs or not. Yes, finally will not be executed if the program exits either by calling System.exit() or by causing a fatal error that causes the process to abort.
Check out your Company Bowl for anonymous work chats.