WeakReference

The WeakReference class describes a Reference object whose referent is weakly reachable.

WeakReference is useful for preventing memory leaks related to hashmaps.

Home 
  Java Book 
    Language Basics  

Reference:
  1. Reference
  2. SoftReference
  3. WeakReference
  4. PhantomReference