Java Fundamentals  «Prev 

Java Keywords

Java defines a special set of identifiers called keywords that represent fundamental coding constructs.
Following is a list of keywords that are reserved in Java:

abstract assertboolean break
byte casecatchchar
classconstcontinuedefault
do double else enum
extends false final finally
float for goto if
implements import instanceof int
interface long native new
null packageprivateprotected
publicreturn shortstatic
strictfpsuper switch synchronized
this throwthrows transient
true try void volatile
while


Keywords required for Java SE 8

Java keywords and reserved words that cannot be used as names for Java variables
Table 6.2 Java keywords and reserved words that cannot be used as names for Java variables


abstract default goto package this
assert do if private throw
boolean double implements protected throws
break else import public transient
byte enum instanceof return true
case extends int short try
catch false interface static void
char final long strictfp volatile
class finally native super while
const float new switch  
continue for null synchronized  


All Java keywords are defined for a reason. Most of them provide some functionality within the Java programming language, while others serve as placeholders intended to keep you from using a particular word as an identifier.