• Post Reply Bookmark Topic Watch Topic
  • New Topic

@Retention annotation  RSS feed

 
Gajendra Kangokar
Ranch Hand
Posts: 94
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the use of @Retention annotation or how it should be used
RetentionPolicy.RUNTIME
RetentionPolicy.SOURCE
RetentionPolicy.CLASS

when to use each type of retention.
can anyone please give an example

Thank You
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!