HTTP://LPACEC.ITEYE.COM/BLOG/25180 Package Name: The package name is all lowercase nouns, the middle can be separated by points, for example: java.awt.event;
Class Name: Capitalized, usually composed of multiple words of a class name, requiring that the first letter of each word should also be capitalized, such as Class Helloworldapp;
Interface Name: The naming convention is the same as the class name, for example interface Collection;
Method Name: Often composed of multiple words, the first word is usually a verb, the first letter lowercase, the middle of each word of the first letter should be capitalized, for example: Balanceaccount,
isbuttonpressed;
Variable name: All lowercase, usually nouns, for example: length;
Constant name: The constant name of the base data type is all uppercase, and if it is composed of more than one word, it can be separated by an underscore, for example: int year, int
Week_of_month; If it is a constant of an object type, it is a mixed case, separated by uppercase letters.
Java Naming conventions