Keywords in Java

Keywords are the reserved words. They have a specific meaning in Java programming language. You are not allowed to use keywords as identifiers. Java provides more than 50 keywords, and they are listed below in the table-

abstractassertbooleanbreakbytecase
catchcharclassconstcontinuedefault
dodoubleelseenumextendsfalse
finalfinallyfloatforgotoif
implementsimportinstanceofintinterfacelong
nativenewnullpackageprivateprotected
publicreturnshortstaticstrictfpsuper
switchsynchronizedthisthrowthrowstransient
truetryvoidvolatilewhile