|
Java™ by example!
|
|
|
|
Become a member to observe this category
|
|
java.lang.ref.*
This category is about reference objects. A reference encapsulates a reference to some object. Handling these types of objects allow for greater flexibility in garbage collection. For example, consider a cache system where you keep references to substantial-sized text files. You want to be able to reach these references whenever you needs them for performance reasons, but at the same time you want to release them (allow the garbage collector to reclaim that memory) if memory is getting low. Check out the example programs and sites related to this topic!
Subcategories
Questions & Answers
= answered, = unanswered
General:
What is a soft reference and when do I use one?
What is a weak reference and when do I use one?
What is a phantom reference and when do I use one?
Further Information (sorted alphabetically)
Api's:
Articles:
Related Links:
|
|
|
|
|