Select a correct answer
-
Private methods cannot be overridden in subclasses
-
A subclass can override any method in a superclass.
-
An overriding method can declare that it throws more exceptions than the method it is overriding.
-
The parameter list of an overriding method must be a subset of the parameter list of the method that it is overriding.
-
The overriding method can have a different return type than the overridden method.
Private methods are not visible to subclasses and therefore cannot be overridden. A subclass can only override public and protected methods. An overriding method cannot declare more checked exceptions than the overridden method. The parameter list must match exactly (same number and types). The return type must be covariant (same type or subtype).