Java Keywords and Reserved words


Reserved words are words that are reserved by the language for future use.
Keywords have a special meaning in a language, and are part of the syntax.

All keywords are reserved words, but not all reserved words are keywords.
keywords and reserved words cannot be used as identifier names
There are 53 keywords and Reserved words in java.
in that
48 are used keywords(given in below table)
2 are unused keywords(goto, const)
and remaining 3 are literals(true, false, null)


categorykeywords
Classclass, extends, implements, interface
Objectnew, this, super
Packagepackage, import
Access Modifierspublic, private, protected
Non-Access Modifiersabstract, final, static, strictfp, volatile, transient, native, synchronized
Flow Controlbreak, case, continue, else, if, default, do, for, instanceOf, switch, while, return
Primitive Typesbyte, short, int, long, float, double, char, boolean
Exceptiontry, catch, finally, assert, throw, throws
Enumerationenum
return typevoid

Popular posts from this blog

Number Pattern programs in java

String Related programs in java