DEVFYI - Developer Resource - FYI

What restrictions are placed on method overriding?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

100. What restrictions are placed on method overriding?

Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides. The overriding method may not throw any exceptions that may not be thrown by the overridden method.

(Continued on next question...)

Other Interview Questions