Finally block will be executed whether or not an exception is thrown. So
it is used to free resoources. finalize() is a protected method in the
Object class which is called by the JVM just before an object is garbage
collected.
A Complete Java Tutorial and Career Guide
Recommended for you
Posted in: Java Exceptions