What happens when an exception occurs at finalize method ?

What happens when an exception occurs at the time of cleaning objects in finalize methods?Will program crashes?
[125 byte] By [rd81a] at [2007-10-3 4:02:33]
# 1
> What happens when an exception occurs at the time of> cleaning objects in finalize methods?> > Will program crashes?How about you reading the API, which explains what happens?
CeciNEstPasUnProgrammeura at 2007-7-14 22:01:58 > top of Java-index,Java Essentials,Java Programming...
# 2

1.) Why don't you try it? You can simply throw your own exception.

2.) For this kind of questions the [url=http://java.sun.com/docs/books/vmspec/] JVM specification[/url] is a good resource, for your concrete problem the [url=http://java.sun.com/docs/books/vmspec/2nd-edition/html/Concepts.doc.html#19147]chapter about finalization[/url] might be interested (look for the sentence starting with "If an uncaught exception ...").

JoachimSauera at 2007-7-14 22:01:58 > top of Java-index,Java Essentials,Java Programming...
# 3
> How about you reading the API, which explains what> happens?D'Oh! Of course that would be easier than reading the JVM spec ;-)
JoachimSauera at 2007-7-14 22:01:58 > top of Java-index,Java Essentials,Java Programming...