Override in Java 5

By james

I just read another article on some features of Java 1.5 [hangs head in shame for not tinkering enough on the side to know this stuff already]. I like the @override tag they’ve added. You can add an annotation (like javadoc tag’s but not in a comment block) to indicate the method is meant to override another. Helps find some bugs that I know have happened to me on occassion.

You can read the article here.

I also especially like the generics…more and more info on using them for more than just strong-typed collections.

Bonus: I heard eclipse auto-generates the tag when generating the override stub for you.

Leave a Reply