Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Java in General
soft and hard references in java
Piyush Jain
Ranch Hand
Posts: 60
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
are there anything called soft and hard references in
java
?
what are they?
Thanks
Layne Lund
Ranch Hand
Posts: 3061
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I've never heard of this terminology before, but I am far from knowing everything about the language. I hope someone else can confirm (or deny) this
Layne
[ November 03, 2004: Message edited by: Layne Lund ]
Java API Documentation
The Java Tutorial
Piyush Jain
Ranch Hand
Posts: 60
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I found it .
there is nothing called hard references.
however SoftReference is a class in the java.lang.ref package.
this resource has good explnation of these references.
softreferences
Tony Morris
Ranch Hand
Posts: 1608
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
There are soft, weak, phantom and strong references.
By 'hard reference' I assume you mean 'strong reference'.
Failure to understand these reference types is the cause of many common resource leaks in large applications.
Tony Morris
Java Q&A (FAQ, Trivia)
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
warp attribute in textarea
Soft skill and hard skill
garbage collection |~ refenence name
Weak and soft references
Phantom Reference
More...