The WeakReference class describes a Reference object whose referent is weakly reachable.WeakReference is useful for preventing memory leaks related to hashmaps