Originally posted by Anvi Dixit:
well i didnt got the question .
If the finalize() method of an object is re-references an object so that it becomes in-eligible for garbage collection
what does 're-refrences an object' means .
Thanking you in advance
For an object to make itself no long eligible for garbage collection, it needs to have a reference to it from something that is still reachable.
So it needs to have itself (ie. "this") assigned from some reference in some other object that is still reachable.