Originally posted by Angela Narain:
In Khalid book it is mentioned that "Overidden method definitions
in subclasses will not be able to throw checked exceptions"
But when i overide the finalize() method ,i am able to throw
checked exception ? I think it should be possible as long
as the class is a subclass of java.lang.Throwable
Overridden method will not able to throw checked exceptions
that are not subclass of the checked exception thats thrown by the method in the parent class. This is what khalid books refers to
Exceptions can be
1. Nuthing
2. Same Exceptions
3. Subclass of the exceptions
Ragu