Nov 8, 2018

Standard built-in Annotations in Java

Java defines 7 built-in annotations:

Four are imported from java.lang.annotation. All of them are meta annotations. Meta annotations are annotations that are applied to annotations.
  1. @Retention
  2. @Documented
  3. @Target
  4. @Inherited
The other three are included in java.lang:
  1. @Override
  2. @Deprecated
  3. @SuppressWarnings