Java Reference
In-Depth Information
4.2.3. Interface Modifiers
An interface declaration can be preceded by interface modifiers:
annotations Annotations and annotation types are discussed in
Chapter 15 .
public A public interface is publicly accessible. Without this modi-
fier an interface is only accessible within its own package.
abstract All interfaces are implicitly abstract because their meth-
ods are all abstractthey have no implementation. Again, by con-
vention, the abstract modifier is always omitted.
strict floating point An interface declared strictfp has all floating-
point arithmetic, defined within the interface, evaluated strictly.
This applies to initialization expressions for constants and to all
nested types declared in the interface. In contrast to classes,
this does not imply that each method in the interface is implicitly
strictfp because that is an implementation detail. See Section
9.1.3 on page 203 for details.
When multiple modifiers are applied to the same interface declaration,
we recommend using the order listed above.
 
Search WWH ::




Custom Search