Java Keywords

In Java programming language, there are some keywords. The keywords are reserved words that have a special meaning and perform specific tasks. Note that these keywords cannot be used to name a constant or a variable as these are reserved words. In this case java compiler will show error. Here is a list of keywords used in this programming language:

Java Keywords

abstractassertbooleanbreak
bytecasecatchchar
classconstcontinuedefault
dodoubleelseenum
extendsfinalfinallyfloat
forgotoifimplements
importinstanceofintinterface
longnativenewpackage
privateprotectedpublicreturn
shortstaticstrictfpsuper
switchsynchronizedthisthrow
throwstransienttryvoid
volatilewhile
Keywords

All keywords are in lower case letters. Note that since this programming language is a case sensitive language so user must use the exact syntax defined for keywords. We will read the details about these keywords separately in the next sections.