Overriding method cannot throw any exceptions that are not thrown by the overridden method.
(T/F)
the answer is false:
with this explanation
It can throw any exception as long as it is a subclass of any of the exceptions thrown by the overridden method. It can, of course, also be a subclass of RuntimeException.
the "as long as" statement in the explanation here, to me, seems to contradict the
word "any" in the questioning statement above.
i think the statement would be
alot more clear if it was like this:
Overriding method cannot throw any new checked/broader exceptions that are not thrown by the overridden method.