What happens if an exception is thrown in finalize()
Posted
by Psykocyber
on Stack Overflow
See other posts from Stack Overflow
or by Psykocyber
Published on 2010-06-14T14:51:01Z
Indexed on
2010/06/14
14:52 UTC
Read the original article
Hit count: 211
What would happen if an exception is thrown during the execution of finalize()? Is the stack unwind like normally? Does it continue finalize() and ignore the exception? Does it stop finalize() and continue GC the object? Or something else?
I'm not looking for guidelines of using finalize() there are plently of pages explaining that.
© Stack Overflow or respective owner