Reserved Words:
In Java some words are reserved to represent some meaning and functionality. such type of words are called Reserved Words.Keywords Catagory |
There are following 53 reserved word in Java:-
a.true
b.false
c.null(default value for object reference.)
these are only reserved literals.
keywords(50):-there are 50 keywords in Java. if the reserved word associated with functionality is called keywords.
Unused keywords:
there are 2 keywords are unused in java.
a.goto
b.const
these are considered as keywords in java but not useful.
Used keywords:
there are 48 keywords in java which are useful in java.these keywords are followings-
Data type keywords(8):
byte, short, int, long, char, boolean, float, double
Control flow Keywords(11):
if, else, switch, case, default, while, do, for, break, continue, return
Modifiers(11):
public, private, protected, abstract
, static, final, native, synchronized, strictfp(1.2 came in version), transient, volatile
default is by default keyword so as 12 keywords.
Exception Based Keywords(6):
try, catch, finally, throw, throws, assert(came in 1.4 version)
Class related keywords:(6)
class, interface, extends, implements, import, package
Object related keywords(4):
new, instanceof, super, this, import, import,
Other keywords:
void
enum(came in 1.5 version)
Note: All 53 reserved words in java contains only lower case alphabet symbol.
Reserved Words |