Constituent elements
-
Alphabet: a-zA-Z
-
Numbers: 0-9
-
Symbol: underscore _, dollar sign $ (bold)
Identifier rules
- Number cannot start
- Keywords cannot be used
- Strictly case-sensitive, when naming names are not limited in length, try to be as clear as possible
note:
- The name of the class: Capitalize the first letter of each word, capitalize the first letter of each word;
- The name of the method: the first letter is lowercase, and the first letter of each word is uppercase; (camel case nomenclature)