This is called Annotation . It does not actually compile into special code, but helps to avoid errors: essentially, it indicates that the method overrides the superclass method. The absence of this annotation can lead to warnings that have this annotation, but not the superclass that has a method with the same annotation is even an error.
This avoids refactoring errors: if the method in superclass renamed, but the override is not, then it will become an error.
source share