Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Soft Reference class  RSS feed

 
Surya Bahadur
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6037
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!