About Question com.enthuware.ets.scjp.v6.2.537 :
Moderator: admin
About Question com.enthuware.ets.scjp.v6.2.537 :
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.
-
- Site Admin
- Posts: 10068
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.537 :
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.
-
- Posts: 11
- Joined: Thu Jun 04, 2020 3:19 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.537 :
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.
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.
-
- Site Admin
- Posts: 10068
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.537 :
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.
Who is online
Users browsing this forum: No registered users and 128 guests