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 ...

Get The Java® Language Specification, Java SE 7 Edition, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.