• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Soft Reference class

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic