Annotation:@注解名(参数)
1.不是程序本身,可以对程序作出解释。
2.可以被其他程序(编译器等)读取。
内置注解:@override,@suppressWarning等
使用@interface 声明一个注解。
格式:public @interface 注解名{
定义体
}
元注解(负责注解其他注解):
@target:用于描述注解的使用范围。
@Retention
@Documented
@Inheried