posted 18 years ago
Hi preetha vasudevan,
When we take overriding rules in to consideration, the rules are applied to checked exceptions only only only. ok.
Error is unchecked exception. That's why it not considerable.
If you override a method from a super class the checked exceptions that the subclass method declares cannot be more general than those of the superclass method. ( It is Ok to throw more specific exceptions, or not to throw any exceptions in the subclass method). In particular, if the super class method throws no checked exception at all, neither can the subclass.