O'Reilly logo

The Java® Language Specification, Java SE 7 Edition, Fourth Edition by Alex Buckley, Gilad Bracha, Guy Steele, Bill Joy, James Gosling

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9.4. Abstract Method Declarations

AbstractMethodDeclaration:    AbstractMethodModifiersopt TypeParametersopt Result                                        MethodDeclarator Throwsopt ;AbstractMethodModifiers:    AbstractMethodModifier    AbstractMethodModifiers AbstractMethodModifierAbstractMethodModifier: one of    Annotation public abstract

If an annotation a9.7) on a method declaration corresponds to an annotation type T9.6), and T has a (meta-)annotation m that corresponds to java.lang.annotation.Target, then m must have an element whose value is java.lang.annotation.ElementType.METHOD, or a compile-time error occurs.

Every method declaration in the body of an interface is implicitly public6.6).

Every method declaration in the body ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required