2.Java identifier naming rules

1 must be a letter, underscore (_) or dollar sign ($) at the beginning;
2. the remaining characters can be underlined, dollar sign or any letters or numbers, the length limitation;
3. identifier with no spaces;
4 You can not use Java keywords or reserved words as identifiers;

Guess you like

Origin www.cnblogs.com/lengjiayuan/p/11595345.html