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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
enthunoob
Posts: 57
Joined: Thu Apr 15, 2021 12:21 pm
Contact:

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

Post 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?

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 8 guests