Example usage for Java java.lang.annotation RetentionPolicy fields, constructors, methods, implement or subclass
The text is from its open source code.
RetentionPolicy | CLASS Annotations are to be recorded in the class file by the compiler but need not be retained by the VM at run time. |
RetentionPolicy | RUNTIME Annotations are to be recorded in the class file by the compiler and retained by the VM at run time, so they may be read reflectively. |