+1 vote
in JAVA by

What is the purpose of finalization in Java?

1 Answer

0 votes
by

The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected. For example, closing a opened file, closing a opened database Connection.

Related questions

0 votes
asked May 30, 2020 in JAVA by Robindeniel
+1 vote
asked May 12, 2021 in JAVA by rajeshsharma
...