ProAnswers.org

What is a weak reference ?

A weak reference is the one that does not prevent the referenced object from being garbage collected. The weak reference will not keep the object that it refers to alive. A weak reference is not counted as a reference in garbage collection. This will make the memory use more effective.