One big misconception is that an object that maintains a reference to itself will not protect itself from being junked by the garbage collector. Some programmers place a reference to the object as a member variable, hoping that it will count. Let me assure you that it does not. Remember that an object already has an implicit reference to itself via the
keyword. Unless an object is referenced by other objects, which are in turn referenced, it does not satisfy the rule.
Guys can anyone help me to realize the above statement through code?? In particular I'm not able to follow the line in bold...Anyone please??