rakesh kankavlikar wrote:SO if there is no reference how garbage collector calls the finalize method?
GC is a thread, so when it comes to know that there is no longer any valid reference referring to the object, he call its finalize() and freed the heap space occupied by that object. So the thing is,
GC has some mechanism to access that object, may be storing its reference somewhere, like virtual pointer table but its just my wild guess