0 votes
in JAVA by
What is the role of finalize()?

1 Answer

0 votes
by

What is the role of finalize()?

Finalize() is used for garbage collection. It’s called by the Java run environment by default to clear out unused objects. This is done for memory management and clearing out the heap.

Related questions

0 votes
asked Oct 17, 2020 in JAVA by rahuljain1
+1 vote
asked Oct 12, 2020 in JAVA by Robindeniel
...