IDENTIFIERS
Identifiers are the names given by a programmer to a class name, method name, variable
name, and any other member of a class.
Rule for Identifiers
*for identifiers, acceptable characters are A-Z, a-z, 0-9 digits, and special characters only $ and _
*An identifier must not start with the number.
*Space is not allowed for identifiers
*A keyword must not be used as an identifier
Convention for a class name
*if a class name has only one word, then it should be written as the first letter capitalized
and the rest of the letter in lowercase
➔ Program, Demo, Number
*if a class name has multiple words, then the first letter of each word should be capital
➔ ProgramForDataTypes, JavaDemo, NumberProgram
Convention for a method name
*if a method name has one word, then it should be written in lowercase with ().
➔ run(), demo(), number()
*if the method name has multiple words, then the first word should be written in small
letters and from the second word, the first letter of each word should be capitalized with ().
➔ ProgramForDataTypes(), javaDemo(), numberProgram()
Convention for a variable
*if a variable name has one word, then it should be written in small letters.
➔ age, name, id, marks
*if the method name has multiple words, then the first word should be written in small
letters and from the second word, the first letter of each word should be capitalized.
➔ ageOfStudent, nameOfEmployee