This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes References Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "References" Watch "References" New topic
Author

References

Rick Charles
Greenhorn

Joined: Jul 27, 2006
Posts: 25
Can anyone explain me about Soft,Weak and phantom references and where it is used?
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
"Rick is a heck of a guy - intelligent, dedicated, creative and hard working. He'll be an asset to any team. I only regret we had to let him go for surfing for porn all day long." Anybody else need references?

Sorry, the ranch is the friendly place, but it's also the silly place the afternoon before a holiday.

I find the doc on those weak references rather confusing and haven't had to use them. Several times I've been tempted to build a cache that makes objects available to any number of threads but only as long as somebody is using them. So far the requirement has always gone away before I got to it.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: References
 
Similar Threads
Need help for SCJP 5.0
Storing use case description in database
Passed the Paper today
Method usage in Eclipse
Using WeakReferences in Android