java注解入门和用法举例
java注解是一种特殊的类型,依托java虚拟机的支持,可以对代码进行动态的声明或管理。
—-系统内建的三种Annotation:java.lang: Annotation类型:
1. public @interface Deprecated
A program element annotated @Deprecated is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists. Co ...