File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Soft Reference class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Soft Reference class" Watch "Soft Reference class" New topic
Author

Soft Reference class

Surya Bahadur
Ranch Hand

Joined: Sep 28, 2000
Posts: 88
Hi Guys
Can someone explain with a small example(if possible) about the SoftReference class introduced in java 2,i vaguely remember reading somewhere that it basically enables a programmer to mark an object as ready for garbage collection but at the same time allows the retrieval of the object until the garbage collector actually finishes it off.Can someone elaborate on this.???
Surya
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
Check out http://developer.java.sun.com/developer/technicalArticles/ALT/RefObj/index.html
--Mark
hershey@vaultus.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Soft Reference class