February 2013
Intermediate to advanced
672 pages
16h 2m
English
ConstantDeclaration: ConstantModifiersopt Type VariableDeclarators ;ConstantModifiers: ConstantModifier ConstantModifier ConstantModifersConstantModifier: one of Annotation public static final
If an annotation a (§9.7) on a field declaration corresponds to an annotation type T (§9.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.FIELD, or a compile-time error occurs.
Every field declaration in the body of an interface is implicitly public, static, and final. It is permitted to redundantly specify any or all of these modifiers for such fields.
If two or more (distinct) field modifiers appear ...
Read now
Unlock full access