Annotations on Interfaces?

前端 未结 10 2139
一生所求
一生所求 2020-12-08 21:52

I can\'t figure out a use case for being able to annotate interfaces in Java.

Maybe someone could give me an example?

10条回答
  •  醉梦人生
    2020-12-08 22:24

    Even without examples, it should be clear to explain - interfaces describe behaviour, and so can annotations, so it's a logical match to put them together.

提交回复
热议问题