What is Retention policy in java annotations? - Java Annotation Programs

What is Retention policy in java annotations? - Java Annotation Programs

瀏覽:833
日期:2025-05-15
Description: A retention policy determines at what point annotation should be discarded. Java defined 3 types of retention policies through java.lang.annotation.RetentionPolicy enumeration. It has SOURCE, CLASS and RUNTIME. Annotation with retention polic...看更多