Java:WeakReference vs SoftReference vs PhantomReference vs Strong reference
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> WeakReference and SoftReference were added into Java API from long time but not every Java programmer is familiar with it. Which means there is a gap between where and how to use WeakReference and SoftReference in Java . Reference classes are particularly important in context of How Garbage collection works . As we all know that Garbage Collector reclaims memory from objects which are eligible for garbage collection, but not many programmer knows that this eligibility is decided based upon which kind of references are pointing to that object. This is also