In Language fundamental we learn some basic topics of core Java are as follows:
A name in Java program is by default considered as Identifier and is use for identification purpose.
It can be a method name, variable name, class name or label name.
example:
class Test
{
public static void main(String args[])
{
System.out.println("Identifier");
int x = 10;
}
}
In a given Java program the underline text are identifier:
Test: Is a class name.
main: Is a method name called main() method.
String: Is a pre-defined class name.
args[] and x: Is a variable name.
While defining a Java identifier name we have some rules: