Adding to my series of article for self-improvement (especially) in Java, here’s a good link to explain Weak references (vs Strong references). As usual it’s open for comment the goal being to give anyone at least an idea of what it is and when it may be useful.
Enjoy.
« […] weak references are a massively useful feature which have been around since Java 1.2 was released, over seven years ago. » Hum, sure… How many people really know how garbage collection actually works? Then why bother with flavors of references?
Anyway, nice info. Thx for sharing.
just because we are Java Developpers doesn’t mean we have to be blindly stupid about memory management 😉
c.f. the article’s examples