Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
It's written in the documentation. "Phantom references are most often used for scheduling pre-mortem cleanup actions in a more flexible way than is possible with the Java finalization mechanism."
In reality, in 10 years of programming, it has never been needed and has never been used. I think that is suitable for some tricky release of native resources. A kind of advanced finalize.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question