`Finally` Block
Let's learn about the `finally` block and how to use it for handling exceptions.
We'll cover the following...
A finally
block contains a set of statements that are finally executed no matter how the program ended. This is generally used to free any resources that were used in the try..catch
blocks of our program.
Basically, the finally
block contains the piece of program that is executed after the completion of both the Try
...