哪个是x和m的默认修饰符
https://docs.oracle.com/javase/8/docs/technotes/guides/language/annotations.html
https://docs.oracle.com/javase/tutorial/java/annotations/index.html
http://www.vogella.com/tutorials/JavaAnnotations/article.html @H_404_4@是否有关于这些修饰符的文档?或者有人可以提供“正式”解释吗?
public @interface Anno { int m() default x; int x = 10; }@H_404_4@? @H_404_4@我想上面的代码相当于:
public @interface Anno { public int m() default x; public static final int x = 10; }@H_404_4@修饰符public和public static final是多余的,但我没有找到官方解释. @H_404_4@我在这看:
https://docs.oracle.com/javase/8/docs/technotes/guides/language/annotations.html
https://docs.oracle.com/javase/tutorial/java/annotations/index.html
http://www.vogella.com/tutorials/JavaAnnotations/article.html @H_404_4@是否有关于这些修饰符的文档?或者有人可以提供“正式”解释吗?