About Question com.enthuware.ets.scjp.v6.2.537 :

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

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scjp.v6.2.537 :

Post by ETS User »

The option "Members of an interface may be static" turns out to be incorrect. I thought that members was a term referring for both fields and methods and so, I chose this option. Maybe the option should be "Methods of an interface may be static" and this would be invalid for sure.

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

Re: About Question com.enthuware.ets.scjp.v6.2.537 :

Post by admin »

Members includes fields as well as methods. As the explanation notes, methods of an interface are public and non-static. Fields are public, static and final. There depending on what kind of member it is, it may be static or non-static.
If you like our products and services, please help us by posting your review here.

af1981
Posts: 11
Joined: Thu Jun 04, 2020 3:19 pm
Contact:

Re: About Question com.enthuware.ets.scjp.v6.2.537 :

Post by af1981 »

Good Morning,

the right answer:

"CrazyDrink must either implement getName or be marked abstract"

is not completely right. I would add "[...] making the class abstract too". Thanks for your attention. Have a good day and a good work.

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

Re: About Question com.enthuware.ets.scjp.v6.2.537 :

Post by admin »

Not sure I understand what you are saying. The option already includes "...or be marked abstract". I don't see any issue with this option.
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], Google [Bot] and 38 guests