The terms "keyword" and "identifier" are not specific to Java.
Keyword - This is a reserved word from a list of Java keywords that provides compiler instructions. Since keywords are reserved, they cannot be used by a programmer for variable names or methods.
Examples:
final class this synchronized
Identifiers are the names of variables, methods, classes, packages, and interfaces. They must consist of letters, numbers, underscore _, and the dollar sign $. Identifiers can only begin with a letter, underscore, or dollar.
Examples:
int index; String name;
index and name are valid identifiers here. int is a keyword.
The keyword cannot be used as an identifier.
Reimeus
source share