- A modifier cannot be specified more than once.
- Multiple access modifiers cannot be used simultaneously.
@Annotations, access (public/private/protected),
static final transient volatile
For method modifiers, requirements are detailed in JLS 8.4.3:
- The same requirements as for field modifiers.
- When used with
abstract
, onlyprotected
orpublic
can be used. - A
native
method cannot usestrictfp
.
@Annotations, access (public/private/protected),
abstract static final synchronized native strictfp