Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to know when an object is deleted?

mrsAngeloMar 11 2013 — edited Mar 14 2013
Hi,

In Java, instances of classes are eliminate by garbage collector and programmers have no chance to do it.

I need to do something, when the instance of a class ends its cycle-life .
How do I know when an object is going to be deleted, in order to make some thing bounded to this event?

thank you

Regards

Angelo
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2013
Added on Mar 11 2013
17 comments
694 views