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?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
[HD Pg 251, Sec. 9.2.5 - inheritance-of-static-methods-of-an-interface]
Moderator: admin
-
- Posts: 60
- Joined: Thu Apr 15, 2021 12:21 pm
- Contact:
[HD Pg 251, Sec. 9.2.5 - inheritance-of-static-methods-of-an-interface]
-
- Site Admin
- Posts: 10045
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 251, Sec. 9.2.5 - inheritance-of-static-methods-of-an-interface]
It is important to know the what (not the why) for the exam. You may get a question that requires you to know this.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 58 guests