O'Reilly logo

The Java® Language Specification, Java SE 7 Edition, Fourth Edition by Alex Buckley, Gilad Bracha, Guy Steele, Bill Joy, James Gosling

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required