bookmark

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


Описание

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.

тэги

Пользователи данного ресурса

  • @jil

Комментарии и рецензии