https://www.gcreddy.com/2021/05/java-keywords-and-identifiers.html
Java Keywords and Identifiers, Java Language Fundamentals, Java Programming Syntax, Writing Java Statements and writing Java Code blocks.
Keywords and Identifiers in Java
Introduction:
Java keywords are also known as reserved words. Keywords are particular words that act as a key to a code. These are predefined words by Java so they cannot be used as identifiers.
Identifiers in Java are symbolic names used for identification. They can be a class name, variable name, method name, package name, constant name, and more.
Note: Java keywords or reserved words can not be used as an identifier.
Example:
int myNum = 100;
In the above Java statement, myNum is an identifier (User-defined), it is for identifying the variable.
String country=”India”;
In the above Java statement, country is an identifier (User-defined), it is for identifying the variable.
Java statements or steps or instructions are written using keywords, identifiers, data, and special characters.
Example:
int num =100;
In the above statement,
int is Data Type (Java keyword),
num is Identifier (variable vame),
= is assignment operator (special character) and ; (semicolon) is also a special character.
100 is data or value.