posted 19 years ago
Hi All,
Which of the following are true about method overriding?
A. The overriding and overridden methods must have the same name, argument list, and return type.
B. The overriding method must not limit access more than the overridden method.
C. The overriding method must not throw any exceptions that may not be thrown by the overridden method.
D. The overriding method may not be private.
Answer for this question is A,B,C,D.
I agree with A,B and D.
But how come C is correct?
Overriding method can throw new unchecked exceptions that may not be thrown by the overriden method right.
Correct me if i'm wrong.
Regards,
Surekha.