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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
chandra.gongati
Posts: 4
Joined: Thu Mar 28, 2019 10:40 am
Contact:

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

Post by chandra.gongati »

Which of the following are standard Java annotations? --- Can you provide the list of standard Java annotations?

admin
Site Admin
Posts: 8913
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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
If you like our products and services, please help us by posting your review here.

BinSlayer
Posts: 10
Joined: Tue Jul 09, 2019 8:33 am
Contact:

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

Post 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

admin
Site Admin
Posts: 8913
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. This should be marked correct. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest