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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.