Page 1 of 1
About Question enthuware.ocpjp.v8.2.1881 :
Posted: Thu Nov 17, 2016 1:08 am
by jamesfeng2
//4 should be Boiler.shutdown(); ?
Re: About Question enthuware.ocpjp.v8.2.1881 :
Posted: Thu Nov 17, 2016 1:14 am
by admin
Yes, and that is why option 3 is a wrong option.
HTH,
Paul.
Re: About Question enthuware.ocpjp.v8.2.1881 :
Posted: Fri Nov 09, 2018 7:33 am
by Touciuciu
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.
Re: About Question enthuware.ocpjp.v8.2.1881 :
Posted: Fri Nov 09, 2018 8:37 am
by admin
Option 3 is indeed set as the correct option.
Re: About Question enthuware.ocpjp.v8.2.1881 :
Posted: Thu Feb 20, 2020 2:20 am
by bvrulez
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.
Re: About Question enthuware.ocpjp.v8.2.1881 :
Posted: Thu Feb 20, 2020 2:26 am
by admin
"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.