3.8. Identifiers

An identifier is an unlimited-length sequence of Java letters and Java digits, the first of which must be a Java letter.

Identifier:    IdentifierChars but not a Keyword or BooleanLiteral or NullLiteralIdentifierChars:    JavaLetter    IdentifierChars JavaLetterOrDigitJavaLetter:    any Unicode character that is a Java letter (see below)JavaLetterOrDigit:    any Unicode character that is a Java letter-or-digit (see below)

A “Java letter” is a character for which the method Character.isJavaIdentifierStart(int) returns true.

A “Java letter-or-digit” is a character for which the method Character.isJavaIdentifierPart(int) returns true.

The “Java letters” include uppercase and lowercase ASCII Latin letters A-Z (\u0041- \u005a), and ...

Get The Java® Language Specification, Java SE 7 Edition, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.