Java Reference
In-Depth Information
• An interface, declared in an interface type declaration (§
9.1
)
♦ An enum constant (§
8.9
)
♦ A field, one of the following:
A field declared in an interface type (§
9.3
)
♦ A method, one of the following:
• A parameter, one of the following:
♦ A parameter of an abstract method of an interface (§
9.4
)
♦ A parameter of an exception handler declared in a
catch
clause of a
try
state-
• A local variable, one of the following:
♦ A local variable declared in a block (§
14.4
)
Constructors (§
8.8
) are also introduced by declarations, but use the name of the class in
which they are declared rather than introducing a new name.
The class libraries of the Java SE platform attempt to use, whenever possible, names
chosen according to the conventions presented below. These conventions help to
make code more readable and avoid certain kinds of name conflicts.