Page 1 of 1

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

Posted: Mon May 30, 2011 7:32 am
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.

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

Posted: Mon May 30, 2011 12:16 pm
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.

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

Posted: Wed Jun 16, 2021 5:02 am
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.

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

Posted: Wed Jun 16, 2021 5:13 am
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.