Keywords in Java

Advertisements

Java Keywords

Keywords are those words who has special meaning for compiler. We can't use keywords as variable name.

The following table contains the list of Java keywords:

Keywords
abstractboolenbreakbyte
casecatchcharclass
continuedefaultdodouble
elseextendsfinalfinally
floatforifimplements
importinstanceofintinterface
longnativenewpackage
privateprotectedpublicreturn
shortstaticsupersynchronized
thisthrowthrowstransient
tryvoidvolatilewhile

Advertisement