Exception Handling Related
In Java HTPe7 by Deitel, Common Programming Error 13.5 says that:
"If a subclass method overrides a superclass method, it is an error for the superclass method to list more exceptions in its throws clause than the overridden superclass method does. However, a subclass's throws clause can contain a subset of superclass's throws list."
Well this kind of makes sense and seems self-explanatory. However, there are some methods overridden in subclasses that i do need to throw an exception (i.e. ArithmeticException) whereas in superclass method it is not needed. I mean what kind of an error is this anyways?
Thanks in advance