my dog learned polymorphism
The moose likes Beginning Java and the fly likes finalize() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "finalize() method" Watch "finalize() method" New topic

finalize() method

Rohit Bhal
Ranch Hand

Joined: Aug 28, 2007
Posts: 44
Could anyone please explain me with example that how finalize() method can actually result in saving an object from deletion?

Thank you.

Skip Skipping
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
I agree. Here's the link:
subject: finalize() method
It's not a secret anymore!