Page 1 of 1

About Question enthuware.ocpjp.ii.v11.2.3377 :

Posted: Wed Jul 24, 2019 9:48 pm
by chandra.gongati
Which of the following are standard Java annotations? --- Can you provide the list of standard Java annotations?

Re: About Question enthuware.ocpjp.ii.v11.2.3377 :

Posted: Wed Jul 24, 2019 10:16 pm
by admin
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

Re: About Question enthuware.ocpjp.ii.v11.2.3377 :

Posted: Sat Aug 10, 2019 5:19 am
by BinSlayer
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

Re: About Question enthuware.ocpjp.ii.v11.2.3377 :

Posted: Sat Aug 10, 2019 7:28 am
by admin
You are right. This should be marked correct. Fixed.
thank you for your feedback!