posted 21 years ago
Hi, can the finalize() throw checked exceptions?
In an answer to a review question (pg. 256 ,8.4 c), it is stated in Khalid Mughal that the finalize() in Object can throw any throwable Object.Overiding methods can limit the range to unchecked exceptions.However, I have overridden the method to throw any Exception(checked) & it works fine.
So help me guys, is it that I am not able to understand the problem correctly or am I right?