File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "References" Watch "References" New topic


Rick Charles

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:
subject: References
It's not a secret anymore!