Java java.lang.annotation RetentionPolicy fields, constructors, methods, implement or subclass

Example usage for Java java.lang.annotation RetentionPolicy fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang.annotation RetentionPolicy.

The text is from its open source code.

Field

RetentionPolicyCLASS
Annotations are to be recorded in the class file by the compiler but need not be retained by the VM at run time.
RetentionPolicyRUNTIME
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.