Keywords in JAVA

Keywords in Java are reserved words by the compiler which has a special function and set of definitions.  Here the meaning of the reserved words is that these keywords are already predefined by Java so these cannot be used or not allowed for any other program elements like variable or identifier or object name or class name, methods etc. These are the fixed word which is used for a particular purpose. Till now there are 52 keywords in java these are: abstract continue for new switch
assert default goto package synchronized
boolean do if private this
break double implements protected throw
byte else import public transient
case enum instanceof return try
catch extends int short void
char final interface static volatile
class finally long strictfp while
const float native super

Variable, Constant & Literals in JAVA

A variable is a data name that is used for storing a data value. The value of the variable may be changed during the program execution, Example: – int number = 8; Here ‘int’ is a data type, ‘number’ is a variable name and 8 is a value that it stores.