K&B says the following on page 106
The overriding method must NOT throw checked exceptions that are new
or broader than those declared by the overridden method. For example, a
method that declares a FileNotFoundException cannot be overridden by a
method that declares a SQLException, Exception, or any other non-runtime
exception unless it's a subclass of FileNotFoundException
I have the following code which compiles fine, going against the quote above, however, if access modifiers are changed to public then it does not compile fine as stated in the quote above.
My question is that if I have private access modifiers, is the eat() method still being overridden? and if so, why don't I get an error.