Skip to main content

Identifiers

note

Identifiers are the names those will be used to identify the programming elements like classes, methods, variables etc uniquely.

Identifiers are also known as User Defined Words.

Rules to follow when you define an identifier.

  • Identifiers can contain Alphabets, Digits and two special symbol. ie, Dollar, and Underscore.
  • First character of an Identifier must be an Alphabet or Dollar or Underscore.
  • Keywords or Reserved words can't be used as an Identifier.
  • It should not start with digits.
  • 67 keywords should not be used as an Identifier.
  • true, false, null should not be used as an Identifier.
  • Space is not allowed.