Problem Statement
Which pairing correctly matches reference type to its typical use?
Explanation
Weak references allow GC to reclaim entries aggressively—good for caches with no hard retention. Soft references are less aggressively reclaimed (historically for caches, though guidance now favors explicit policies). Phantom references are for post-mortem cleanup with ReferenceQueue; you cannot get the referent.
Practice Sets
This question appears in the following practice sets:
