The only thing I know about PhantomReference is,
- If you use its
get()method, it will always returnnulland not the object. What's the use of it? - By using
PhantomReference, you make it sure that the object cannot be resurrected fromfinalizemethod.
But what is the use of this concept/class?
Have you ever used this in any of your project or do you have any example where we should use this?