Identifier naming rules in java

1. It is composed of the underscore character and the dollar sign $
2. The first character cannot be a number
3. It cannot be a java keyword or a reserved word;
4. Strictly distinguish between upper and lower case;
5. Meet the camel case nomenclature: (the first letter of the class name Must be capitalized)
6. See the name and know the meaning

Guess you like

Origin blog.csdn.net/jq1223/article/details/112727027