Identifiers in Java
In a Java program, identifiers are names. Identifiers can be the name of a class, a method, or a variable. Java identifier definition guidelines:
1) Identifiers must be preceded by a letter, an underscore, or the dollar sign ($).
2) No number can come first in an identifier.
3) Although there is no restriction on the number of characters in an identification, having more than 15 characters is not advised.
4) Case matters when using Java IDs.
5) First letter can be an alphabet, or underscore and dollar sign. From the second letter, we can have numbers
6) Java IDs shouldn’t contain reserved words.