A finally clause ensures that the finally block is executed after the try block and any catch block that might be executed, no matter how control leaves the try block or catch block.
finally should have atleast a
is optional. The point of finally blocks is to make sure that the piece of code must be executed whether an exception is thrown or not.
finally should always be preceded by a