Finally block is used to execute code which should be executed
irrespective of whether an exception occurs or not. The kind of code
written in a finally block consists of clean up code such as closing of
database/file connection.
A Complete Java Tutorial and Career Guide
Recommended for you
Posted in: Java Exceptions