Java Identifiers
In programming languages, identifiers are used for identification purpose.
In Java an identifier can be a Class name, Method name, Variable name or a Label.
For Example,
public class Test
{
public static void main(String[] args)
{
int x = 10;
}
}
In the above Java code, we have 5 identifiers:
1. Test - Class name
2. main - Method name
3. String - Predefined Class name
4. args - Variable name
5. x - Variable name
Happy Learning !
Comments
Post a Comment