This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to annotate an annotation using few more annotation  RSS feed

 
royce roy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

Please help me i want to know that how to annotate an annotation using few more annotation.

Thanks
 
Campbell Ritchie
Marshal
Posts: 55717
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Have you been through the Java™ Tutorials? I would think that section would explain your question. You are boiund to have more questions whn you have read that, so we shall do our best to answer them.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know how to annotate a class? Annotating an annotation is exactly the same - you just put the annotation above the declaration of the annotation. In fact, most annotations are annotated with a few other annotations such as @Target, to indicate where the annotation can be used.

For example:
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!