0 likes | 64 Views
Keywords are the reserved words used by the Java development team.Identifiers mean to identify.It is used for declaring the name of a class, method, variable, etc. <br>for more free learning visit:<br>https://quipoin.com/view/Java/Keywords and Identifiers
E N D
Keyword & Identifier Keywords and identifiers in JAVA
Overview Keywords are the reserved words used by the Java development team. It is used to define some functionality. Each keyword has different rules, functions and uses. Identifiers mean to identify. It is used for declaring the name of a class, method, variable, etc. e.g. class Employee{ } (Here Employee is the class name . So Employee is an identifier.) Legal identifiers must be created by only Unicode characters, numbers, currency symbols, and connecting characters (like underscores).
Program public class Addition //Addition-Class Name { public static void main(String[ ] args) //main-Method Name { int a = 10; //a-Variable Name int b = 20; //b-Variable Name } }
Popular Keywords The final keyword can be used in all below levels: variable method class