Java注解Annotation

注解:对程序进行解释,可以被其他程序读取。

注解的元注解

 

 

自定义注解
@Retention(value ="")
@Target (value ="")
public @interface MyAnnotation{
int age() default 0;
}

posted @ 2020-04-09 14:31  RichXan  阅读(61)  评论(0编辑  收藏  举报