bookmark

reference - What's the difference between SoftReference and WeakReference in Java? - Stack Overflow


Description

From Understanding Weak References, by Ethan Nicholas: ... An object which is only weakly reachable (the strongest references to it are WeakReferences) will be discarded at the next garbage collection cycle, but an object which is softly reachable will generally stick around for a while.

Preview

Tags

Users

  • @jil

Comments and Reviews