I have been a java developer 2 years. But I have never wrote a WeakReference in my code. How to use WeakReference to make my application more efficiency especially in Android application.
|
Using a You should think about using one whenever you need a reference to an object, but you don't want that reference to protect the object from the garbage collector. A classic example is a cache that you want to be garbage collected when memory usage gets too high (often implemented with Be sure to check out EDIT: Tom has raised some concerns over implementing a cache with Tom is right that there have been complaints about poor Netbeans performance due to I still think it would be a good learning experience to implement a cache with |
|||||||||||||||||
|