- Variables are stored in memory address, when a variable is defined, we can find the memory address through the variable name, you can modify the value of the memory range.
- Naming conventions for identifiers: initials: Letters, underscores, $ symbols, remainder: Numbers, letters, underscores, $.
- Identifiers should avoid keywords inside Java
- If the variable name is made up of multiple English words, it needs to be named as a camel rule. The initial letter should be lowercase.
- Java keyword, the Java language has 51 keywords, you cannot use these keywords to name classes, variables, and method names. The Java keywords are as follows:
Array type: int long short byte boolean float double Char class interface
Process Control: If else do and for switch case default break continue return try Catch finally
Modifier: Public protect private final void static STRICTFP abstract transient synchrnoized volatile native
Action: Package import throw throws extends implements this super instanceof new
Other.
Naming conventions for variable and identifier names in Java