- Identifiers
- Reserved Words
- Data Types
- Literals
- Arrays
- Types of Variables
- var-arg Methods
- main() method
- Command Line Arguments
- Java Coding Standards
What is identifier ?
- The name given to class, method, variable and label in java is nothing but the identifier.
Let’s take a below sample example –
Class Test
{
Public static void main (String args[])
{
int num = 10;
}
}
Let’s review - What are the identifiers in above code snippet?
Class Test
{
Public static void main (String args[])
{
int num = 10;
}
}
The Test - Class name, main - method name, String - predefined class name, args - variable name & num - variable name are identifiers in above code.
Naming Conventions/Rules for Identifiers




Comments
Post a Comment