Forums Register Login

Is there a destructor method?

+Pie Number of slices to send: Send
Or some method that is called just before an object is destroyed?
+Pie Number of slices to send: Send
The finalize() method is called before an object is garbage collected. The problem is, though, that there's no guarantee than any given object will ever be collected -- if the memory is never needed, it may not be reclaimed.
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 564 times.
Similar Threads
Finalization Method
NX: When should I throw DuplicateKeyException?
garbage collection
Sharpen your Pencil - Page 323 in HFEJB
Changin font in a JTextArea
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:54:23.