What is a phantom reference?

John Zukowski

A phantom reference is a special type of reference object that allows you to perform cleanup after an object has been finalized but before the garbage collector has returned the space to the heap. It is implemented by the PhantomReference class in the java.lang.ref package.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact