Differentiate between keywords and identifiers
Answers
Answered by
15
hello ,
In the Java programming language, akeyword is one of 53 reserved words that have a predefined meaning in the language; because of this, programmers cannot use keywords as names for variables, methods, classes, or as any other identifier.
Identifiers in Java. Identifiers are the names of variables, methods, classes, packages and interfaces. Unlike literals they are not the things themselves, just ways of referring to them. In the HelloWorld program, HelloWorld , String , args , main and println are identifiers
hope helps friend !!!!
In the Java programming language, akeyword is one of 53 reserved words that have a predefined meaning in the language; because of this, programmers cannot use keywords as names for variables, methods, classes, or as any other identifier.
Identifiers in Java. Identifiers are the names of variables, methods, classes, packages and interfaces. Unlike literals they are not the things themselves, just ways of referring to them. In the HelloWorld program, HelloWorld , String , args , main and println are identifiers
hope helps friend !!!!
Ajayrajchavda:
for like example...??
Answered by
48
KEYWORDS:-
▶Keywords are pre-defined words in a C compiler.
▶Each keyword is meant to perform a specific function in a C program.
IDENTIFIERS:-
▶Each program elements in a C program are given a name called identifiers.
▶Names given to identify Variables, functions and arrays are examples for identifiers. eg. x is a name given to integer variable in above program.
▶Keywords are pre-defined words in a C compiler.
▶Each keyword is meant to perform a specific function in a C program.
IDENTIFIERS:-
▶Each program elements in a C program are given a name called identifiers.
▶Names given to identify Variables, functions and arrays are examples for identifiers. eg. x is a name given to integer variable in above program.
Similar questions