Naming conventions in Java:
Package name: All letters are lowercase when multiple words are formed: xxxyyyzzz
Class name, interface name: when multiple words are formed, the first letter of all words is capitalized: XxxYyyZzz
Variable name, method name: when multiple words are formed, the first letter of the first word is lowercase, and the second word starts with uppercase of each word: xxxYyyZzz
Constant name: All letters are capitalized, and each word is connected with an underscore when there are multiple words: XXX_YYY_ZZZ
note:
Note 1: When naming, in order to improve readability, it should be as meaningful as possible, so as to "see the name and know the meaning".
Note 2: Java uses the unicode character set, so the identifier can also be declared in Chinese characters, but it is not recommended.