Java / Annotations
Where do I apply annotations in a Java program?
Java Annotations can be applied to Java element declarations and as of Java 8, annotations are applicable to the types.
The Annotations on element declarations include classes, fields, methods, local variables, and other elements.
Annotations on types include object creation, type casting, implements clause and throws exception declaration. This form of annotation is known as type annotation.
More Related questions...