aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes exceptions are ingnored in finalize(): why? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "exceptions are ingnored in finalize(): why?" Watch "exceptions are ingnored in finalize(): why?" New topic
Author

exceptions are ingnored in finalize(): why?

Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
hi:
"Any exception thrown by the finalize method causes the finalization of this object to be halted, but is otherwise ignored." API 1.4.1
hope that helps
Hanna


SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
besides, no one guarantees that the finalize() method will execute.
[ August 27, 2003: Message edited by: Andres Gonzalez ]

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Karl Harbour
Greenhorn

Joined: Jul 22, 2003
Posts: 3
Because there is no calling code to catch them.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exceptions are ingnored in finalize(): why?
 
Similar Threads
priority of garbage collector thread
Why Donot finalize method run?
Exceptions thrown in Finalize()
NullPointerException
Need help on this piece of code about GC and finalize()