Package java.lang

Annotation Type Override


  • @Target(METHOD)
    @Retention(SOURCE)
    public @interface Override
    Annotation type used to mark methods that override a method declaration in a superclass. Compilers produce an error if a method annotated with @Override does not actually override a method in a superclass.
    Since:
    1.5