jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes finalize().!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "finalize().!!" Watch "finalize().!!" New topic


sharma anurag

Joined: Aug 29, 2007
Posts: 16
Hi to all my Friends of javaranch.!!
i want to know if we are not defining finalize method in our applicatiion than shall this method would call automatically, if yes,than what is thier(content)in the finalize method ??
Thanks in advance.!!!
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
If neither your class nor its subclasses define a finalize() method, then the finalisation step is effectively a no-operation.

... which is exactly what it should be, 99.9% of the time, as the finalisation mechanism is a poorly-conceived hang-over from the very earliest days of Java. There are very few valid reasons to define a finaliser, these days.

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
I agree. Here's the link: http://aspose.com/file-tools
subject: finalize().!!
It's not a secret anymore!