Back to the main page

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

* reserved but actually used
** ensures calculations match type rather than available CPU architecture. E.g. calculations are not done at 64bit for 32bit floats on 64bit machines.

true, false and null are not keywords but literals and therefore cannot be used for variable names