Previous | Next | Trail Map | Reference Objects | Contents

All About Reference Objects

The Reference Objects API consists of the classes listed below and shown in the class hierarchy diagram on the right.

The SoftReference, WeakReference, and PhantomReference classes define three kinds of Reference objects and three strengths of object reachability. From strongest to weakest, the strengths of reachability are the following:
  • Strongly reachable
  • Softly rechable
  • Weakly reachable
  • Phantomly reachable
  • Unreachable
To explain how to use the Reference Objects API classes in a program and the resulting behavior of the garbage collector, this lesson covers the following topics:


Previous | Next | Trail Map | Reference Objects | Contents