Formatting IdentifiersIn the Java programming language, an identifier is a name given to a variable, class, or method. Identifiers start with a letter, underscore (_), or dollar sign ($) and valid currency symbols. Subsequent characters can be digits. Identifiers are case-sensitive and have no maximum length.
The following are valid identifiers:
5. $change // Legal but not encouraged
Initializing FieldsThis section addresses the initial values allocated to the fields (attributes)
of a newly created object.
Java technology provides the following mechanisms for field initialization.
● Initialize using default values
● Initialize using explicit values
● Initialize using constructors
Java Language Keywords
Here is a list of keywords in the Java programming language. You cannot use any of the following as identifiers in your programs. The keywordsSource : http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html
gotoare reserved, even though they are not currently used.
nullmight seem like keywords, but they are actually literals; you cannot use them as identifiers in your programs.
|**||added in 1.2|
|***||added in 1.4|
|****||added in 5.0|