Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing Annotation Question

 
Tom Hill
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a question about the purpose of one of the features of Annotations.
If I have an annotation and create a class which implements this annotation what do I get from my class?

If I create an annotation such as:



What does it mean, or what is the purpose of:



I can't find any examples of why you might want to do this or even why its valid. I'm thinking this class could be created and cast as a MyAnnotation, perhaps to replace an existing annotation or add another annotation to an Element.

Any insight would be great! Cheers guys


Tom
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic