About Question enthuware.ocpjp.v8.2.1881 :

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

Moderator: admin

Post Reply
jamesfeng2
Posts: 2
Joined: Wed Oct 26, 2016 8:02 pm
Contact:

About Question enthuware.ocpjp.v8.2.1881 :

Post by jamesfeng2 »

//4 should be Boiler.shutdown(); ?

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

Re: About Question enthuware.ocpjp.v8.2.1881 :

Post by admin »

Yes, and that is why option 3 is a wrong option.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Touciuciu
Posts: 11
Joined: Fri Aug 17, 2018 8:52 am
Contact:

Re: About Question enthuware.ocpjp.v8.2.1881 :

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

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

Re: About Question enthuware.ocpjp.v8.2.1881 :

Post by admin »

Option 3 is indeed set as the correct option.
If you like our products and services, please help us by posting your review here.

bvrulez
Posts: 33
Joined: Sat Feb 15, 2020 12:44 am
Contact:

Re: About Question enthuware.ocpjp.v8.2.1881 :

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

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

Re: About Question enthuware.ocpjp.v8.2.1881 :

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

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