java naming convention fields code example

Example 1: variable name in java

Java variable names are case sensitive. ...
Java variable names must start with a letter, or the $ or _ character.
After the first character in a Java variable name, the name can also contain numbers (in addition to letters, the $, and the _ character).

Example 2: java coding standards variables

1) Variable names should start with small letters.
2) Variable names should be nouns
3) Short meaningful names are recommended.
4) If there are multiple words every innerword should start with Uppecase 
character.
Ex : string,value,empName,empSalary

Tags:

Java Example