posted 20 years ago
If references are not set to null, and gc is called, then it is of no use. So, i think basic requirement before calling to System.gc() is to set reference to null. There is no user of calling System.gc() without clearning object reference.
On the otherhand, even if you are not calling System.gc(), system will invoke when ever memory is low.
Thank you
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."