Annotation access modifier - public vs abstract

前端 未结 5 658
夕颜
夕颜 2021-01-23 13:08

What is the difference between public and abstract modifier for an elements of annotation in Java.

For example we coul

5条回答
  •  故里飘歌
    2021-01-23 13:13

    Both of them are redundant. As described in the JLS the methods of an interface are abstract and public by default.

提交回复
热议问题