About Question enthuware.ocpjp.v8.2.1881 :
Moderator: admin
-
- Posts: 2
- Joined: Wed Oct 26, 2016 8:02 pm
- Contact:
About Question enthuware.ocpjp.v8.2.1881 :
//4 should be Boiler.shutdown(); ?
-
- Site Admin
- Posts: 10072
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1881 :
Yes, and that is why option 3 is a wrong option.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 11
- Joined: Fri Aug 17, 2018 8:52 am
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1881 :
Option 3 is not wrong, there is a compilation failure if we do not change that line so either option 3 is the correct one or wither you change option 4 to say that by changing the line to Boiler.shutdown(); will print...
Please correct the question as it is missleading and confussing.
Please correct the question as it is missleading and confussing.
-
- Site Admin
- Posts: 10072
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1881 :
Option 3 is indeed set as the correct option.
If you like our products and services, please help us by posting your review here.
-
- Posts: 33
- Joined: Sat Feb 15, 2020 12:44 am
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1881 :
Is it safe to say that static methods of interfaces are not inherited from a subinterface? While static methods of classes are inherited from subclasses.
-
- Site Admin
- Posts: 10072
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1881 :
"inherit" is a wrong word for static methods but yes, one could say that static method of an interface is not inherited by a subinterface. You should try some code to check it out.
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 15 guests