The
purpose of finalization is to give an unreachable object the
opportunity to perform any cleanup, before the object gets garbage
collected. For example, closing an opened database Connection.
A Complete Java Tutorial and Career Guide
Recommended for you
Posted in: Garbage Collection(GC),Java interview questions