About Question enthuware.ocpjp.ii.v11.2.3377 :
Moderators: Site Manager, fjwalraven
-
- Posts: 4
- Joined: Thu Mar 28, 2019 10:40 am
- Contact:
About Question enthuware.ocpjp.ii.v11.2.3377 :
Which of the following are standard Java annotations? --- Can you provide the list of standard Java annotations?
-
- Site Admin
- Posts: 10170
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3377 :
You may check the JavaDoc for an exhaustive list but for the exam you should know about the following:
Deprecated
Override
FunctionalInterface
SuppressWarnings
SafeVarargs
Repeatable
Retention
Target
interface
ReadOnly
Also, check out this article: https://www.oracle.com/technetwork/arti ... 77655.html
Deprecated
Override
FunctionalInterface
SuppressWarnings
SafeVarargs
Repeatable
Retention
Target
interface
ReadOnly
Also, check out this article: https://www.oracle.com/technetwork/arti ... 77655.html
If you like our products and services, please help us by posting your review here.
-
- Posts: 10
- Joined: Tue Jul 09, 2019 8:33 am
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3377 :
Hi
Both Retention and Repeatable belong in java.base -> java.lang.annotation package. So why aren't both answers acceptable? The question says only Repeatable is the correct answer.
Is there a catch?
Thanks
Both Retention and Repeatable belong in java.base -> java.lang.annotation package. So why aren't both answers acceptable? The question says only Repeatable is the correct answer.
Is there a catch?
Thanks
-
- Site Admin
- Posts: 10170
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3377 :
You are right. This should be marked correct. Fixed.
thank you for your feedback!
thank you for your feedback!
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 1 guest