finalization
Java
Immediately before an object is garbage collected, its finalize method is called. This gives it the opportunity to free any resources it might be holding on to.
Immediately before an object is garbage collected, its finalize method is called. This gives it the opportunity to free any resources it might be holding on to.