There are 50 keywords currently defined in the Java language.
These keywords cannot be used as identifiers.
Thus, they cannot be used as names for a variable, class, or method.
The keywords const
and goto
are reserved but not used.
In addition to the keywords, Java reserves the following: true
, false
, and null
.
These are values defined by Java.
You may not use these words for the names of variables, classes, and so on.
abstract continue for new switch assert default goto package synchronized boolean do if private this break double implements protected throw byte else import public throws case enum instanceof return transient catch extends int short try char final interface static void class finally long strictfp volatile const float native super while