Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why there is no @Implements annotation in Java?

I have found the @Override annotation very much helpful while overriding some super class methods in my derived classes. Basically the compiler detects the flaws in my program early which is always a good thing . But why there is no @Implements annotation in Java ?

like image 985
Geek Avatar asked Feb 14 '13 06:02

Geek


1 Answers

Because you use @Override for methods defined by interfaces as well.

(Yes, you're "implementing" rather than "overriding" ... but @Override is used for both)

like image 54
Brian Roach Avatar answered Oct 26 '22 22:10

Brian Roach