Take the 2-minute tour ×  Should a method that implements an
interface method be annotated with @Override?  The javadoc of
the Override annotation says:   I don't think that an interface
is technically a superclass. Or is it?  Question Elaboration
share|improve this question wow this question could be shorter,
but it's the question I needed. Thanks –  Yar Feb 25 '10 at 2:39
I can't find the replacement for the @Override article (Oracle
moved the old Sun blogs recently). Do you know how to find it?
–  Bill the Lizard Jul 26 '12 at 15:24  10 Answers 10  up vote
136 down vote accepted  You should use @Override whenever
possible. It prevents simple mistakes from being made. Example:
class C {     public boolean equals(SomeClass obj){         //
code ...  This doesn't compile because it doesn't properly
override public boolean equals(Object obj).  The same will go
for methods that implement an interface (1.6 and above only) or
override a Super class's method.  share|improve this answer Note
that you cannot add t