Identifiers must start with a letter, a currency character ($), or a connecting charactersuch as the underscore _.
Identifiers cannot start with a number.
After the first character, identifiers can contain any combination of letters, currency characters, connecting characters, or numbers.
There is no limit to the number of characters an identifier can contain.
You can't use a Java keyword as an identifier.
Identifiers in Java are case-sensitive; foo and FOO are two different identifiers.
A legal identifier for a variable is also a legal identifier for a method or a class.
|