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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Doubt with softreference
PavanPL KalyanK
Ranch Hand
Posts: 212
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The sun specification states that use the softreference to avoid OOM error .
I am having query regarding the usage of softreference . I googled but coudn't find any example on how to use this .
Is this the way it should be used ? [code]List l = new ArrayList(); l.add("One"); l.add("Two"); SoftReference sr = new SoftReference(l);
[/code]
Fernando Mendez
Greenhorn
Posts: 10
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In this page =>
http://www.codase.com/search/call?owner=java.lang.ref.SoftReference
, you will find real world implementations samples of it. Hope it helps.
PavanPL KalyanK
Ranch Hand
Posts: 212
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks , Fernando
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Question reg. Adding elements to HashSet / TreeSet
unmodifiableList(List list)
How to remove duplicate from ArrayList?
LinkedList problem
Difference between ArrayList and LinkedList?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...