Page 1 of 1

[HD Pg 251, Sec. 9.2.5 - inheritance-of-static-methods-of-an-interface]

Posted: Sat Jul 24, 2021 10:50 am
by enthunoob
Inheritance of static methods of an interface

Unlike the static methods of a class, the static methods of an interface cannot be inherited. This difference is illustrated by the following code
Besides an example, this is the entire chapter on this. I fined it hard to think of the why, and google lets me find out I'm not the only one. It seems to be more of a design consequence (as of development of the language over the years. Is this important to know for the OCA exam?

Re: [HD Pg 251, Sec. 9.2.5 - inheritance-of-static-methods-of-an-interface]

Posted: Sat Jul 24, 2021 11:05 pm
by admin
It is important to know the what (not the why) for the exam. You may get a question that requires you to know this.