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: 10386
- 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
-
- 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: 10386
- 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!
Who is online
Users browsing this forum: Bing [Bot] and 6 guests