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

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.