- Variable name should be Unique within scope
- Variable name should be <= 255 characters (based on the programming language)
- Variable name should not contain spaces or any special characters (. , “ – $ # * and others). The underscore _ is a valid character
- Variable name cannot be a reserved word
- Should use upper and lower case with purpose
- It is always good programming practice to use names that are descriptive or mnemonic
- The first character of the variable name must either be alphabet or underscore
- It should not start with the digit
Example:
Integer i = 0;
String EmployeeName = ‘Arul’;