René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

identifiers [JAVA]

Methods, Member variables, variables, classes etc have names in a programm. Those names are sometimes referred to as identifiers.

Valid identifiers

A valid identifier consists of letters, digits, underscores and currency symbols. The first character must not be a digit.
Here's a list of valid (legal) identifiers:
  • counter_iteration
  • amount$
  • $value
  • i_10
  • süpör
  • CaMeL
Here's a list of invalid identifiers:
  • 22catch
  • what-do-you-do
  • c/o

Case sensitive

Identifiers are case sensitive, so foo is not the same identifier as Foo