Custom annotation example in Java

This tutorial shows, what is an annotation and how to write a custom annotation. I have taken the below concepts from http://docs.oracle.com/javase/tutorial/java/annotations/basics.html

Annotations, a form of metadata, provide data about a program that is not part of the program itself. Annotations have no direct effect on the operation of the code they annotate.
Annotation was introduced in Java 1.5 and now annotations are heavily used in different java frameworks like Spring, JSF, Hibernate, JPA etc. Continue reading “Custom annotation example in Java”