Possible Duplicate:
How to prevent an object from getting garbage collected?
In java when does an object become unreachable?
I got asked this question in an interview :
What should I do to to an object so that it becomes unreachable to the garbage collector ?