What is phantom memory ?
Answer : Phantom memory or phantom reference is one of strengths or levels of “non strong” reference defined in Java programming language . Others are weak and soft .Phantom reference or memory are weakest level of reference in Java program in order from strongest to weakest :- they are: strong, soft, weak and phantom.
An objects are phantomly referenced after it got finalized but before its allocated memory has been reclaimed.