Top "Soft-references" questions

A soft reference is very similar to a weak reference, except that it is less eager to throw away the object to which it refers.

What's the difference between SoftReference and WeakReference in Java?

What's the difference between java.lang.ref.WeakReference and java.lang.ref.SoftReference ?

java reference weak-references soft-references
Java: difference between strong/soft/weak/phantom reference

I have read this article about the topic, but I don't really understand it. Please give me some advice along …

java reference weak-references soft-references phantom-reference
Understanding Java's Reference classes: SoftReference, WeakReference, and PhantomReference

Can someone explain the difference between the three Reference classes (or post a link to a nice explanation)? SoftReference > …

java reference weak-references phantom-reference soft-references
Using Java's ReferenceQueue

Do SoftReference and WeakReference really only help when created as instance variables? Is there any benefit to using them in …

java memory garbage-collection weak-references soft-references
How to cause soft references to be cleared in Java?

I have a cache which has soft references to the cached objects. I am trying to write a functional test …

java garbage-collection soft-references
How do I efficiently cache objects in Java using available RAM?

I need to cache objects in Java using a proportion of whatever RAM is available. I'm aware that others have …

java caching guava soft-references
android : SoftReference / WeakReference example

I am getting OutOfMemoryError on my application. When i went through some tutorials, i came to know that, I can …

android weak-references soft-references