About Question enthuware.ocpjp.ii.v11.2.3377 :
Moderators: Site Manager, fjwalraven
- 
				chandra.gongati
 - 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?
			
			
									
									
						- 
				admin
 - Site Admin
 - Posts: 10443
 - 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
- 
				BinSlayer
 - 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
- 
				admin
 - Site Admin
 - Posts: 10443
 - 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: No registered users and 15 guests