Java Naming rules (simple), java Naming
1. Package
All lowercase letters, with the prefix defined by the domain name.
Example: teach. golddrem. javagroup
2. Class
Start with an uppercase letter, followed by an uppercase letter. If there is an abbreviation, all the abbreviations are in uppercase.
For example: InformationManageProject, SCCBManage
3. Method
The START letter is lowercase, followed by the first letter of each word.
Example: projectAdd
4. Constants
Specify the meaning of all uppercase letters. Multiple words are separated by underscores.
Example: AVG_SALARY
5. Variables
Hump rule: lowercase letters at the beginning and the first letter of each word at the end.
Hungary name method: the start Letter and the first letter of each word are uppercase, and then the prefix is added to the front. Refer to Baidu Encyclopedia: Hungary name method.
6. Parameters
Naming by the same method, but the meaning should be as clear as possible.