When do you use Java's @Override annotation and why?

Posted by Alex B on Stack Overflow See other posts from Stack Overflow or by Alex B
Published on 2008-09-18T16:48:26Z Indexed on 2010/05/10 16:34 UTC
Read the original article Hit count: 198

Filed under:
|
|

What are the best practices for using Java's @Override annotation and why?

It seems like it would be overkill to mark every single overridden method with the @Override annotation. Are there certain programming situations that call for using the @Override and others that should never use the @Override?

© Stack Overflow or respective owner

Related posts about java

Related posts about best-practices