Will finally block get executed if the exception had not occurred?
Ask by Pushpendra Singh
Updated 13 Sep 2020
Any code that must be absolutely executed whether an exception is thrown or not is
enclosed within the finally block.
For Ex: If a method opens a file, it must be closed whether an exception is raised or
not.