Retention annotation Retention (Retention) annotation indicates that this type of annotation will be retained to that stage. there are three values: 1. retentionPolicy. SOURCE -- this type of Annotations is only retained at the SOURCE code level and will be ignored during compilation. retentionPolicy. CLASS -- this type of Annotations is retained during compilation and exists in the class file, but the JVM will ignore 3. retentionPolic... retention annotation Retention (Retention) annotation indicates that this type of annotation will be retained to that stage. there are three values: 1. retentionPolicy. SOURCE -- this type of Annotations is only retained at the SOURCE code level and will be ignored during compilation. retentionPolicy. CLASS -- this type of Annotations is retained during compilation and exists in the class file, but the JVM will ignore 3. retentionPolicy. RUNTIME -- this type of Annotations will be retained by JVM, so they can be read and used by JVM or other code that uses the reflection mechanism at RUNTIME. example 5 demonstrates the RetentionPolicy. RUNTIME declaration: Java annotation Example 1: @ Retention (RetentionPolicy. RUNTIME) public @ interface Test_Retention
1. Retention, incluented, and Inherited of Java annotations
Introduction: common operations in undo tablespaces: (1) view the attributes of undotbs1 in undo tablespaces: SQLgt; select B. tablespace_name, AUTOEXTENSIBLE, RETENTION f
[Related Q & A recommendations ]:
The above is the recommendation of 10 common Retention usage. Please download it! For more information, see other related articles in the first PHP community!