Identifiers

  • Identifiers can begin with a letter, an underscore, or a currency character.
  • After the first character, identifiers can also include digits.
  • Identifiers can be of any length.
  • JavaBeans methods must be named using camelCase, and depending on the method's purpose, must start with set, get, is, add, or remove.

Example
  • MyData
  • mydata
  • MYDATA
  • y
  • i
  • _$123
  • _mydata
  • $mydata
  • _10data
  • mydata10
  • _$hellot
  • this_is_my_data