Understanding Java’s Reference classes: SoftReference, WeakReference, and PhantomReference
The Java library documentation for the java.lang.ref package characterizes the decreasing strength of the three explicit reference types. You use a SoftReference when you want the referenced object to stay alive until the host process is running low on memory. The object will not be eligible for collection until the collector needs to free memory. … Read more