Package Name:
Package Names are all lowercase nouns separated by vertices, for example, java. AWT. event;
Class Name and Interface Name:
The first letter is capitalized. Generally, a class name is composed of multiple words, and the first letter of each word must be capitalized,
For example, class helloworldapp;
Method Name:
It is often composed of multiple words. The first word is usually a verb, the first letter is lowercase, and the first letter of each word in the middle is
Uppercase, for example, balanceaccount and isbuttonpressed;
Variable name:
The name must be in lowercase. It is generally a noun, for example, length;
Constant Name:
Constants of the basic data type are named in uppercase. If they are composed of multiple words, they can be separated by underscores,
Example: int year, int week_of_month;
If it is a constant of the object type, it is a mix of upper and lower cases, separated by uppercase letters.