What is the purpose of finalization?

Q

What is the purpose of finalization?

✍: Guest

A

The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.

2013-06-11, 1805👍, 0💬