What's the difference between interface and @interface in java?

后端 未结 5 733
甜味超标
甜味超标 2020-12-02 03:44

I haven\'t touched Java since using JBuilder in the late 90\'s while at University, so I\'m a little out of touch - at any rate I\'ve been working on a small Java project th

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 04:08

    interface: defines the contract for a class which implements it

    @interface: defines the contract for an annotation

提交回复
热议问题