Keywords in Java

Table of Contents

Keywords in Java

What do you mean by the keyword used in Java?

It is a type of Token which is sometimes also called Reserved keywords, this is because Java keeps some keyword for its own use only. It is something like a nickname of yours, which is used by only persons you know very closely. And in a similar manner, Java uses this predefined keyword for its own use only.

How many Keywords does Java use for itself only?

There are a total of 47 keywords previously, and recently one more keyword “assert” is added to the list making the total number 48.

abstractcontinuegotopackageswitch
assertdefaultifprivatethis
booleandoimplementsprotectedthrow
breakdoubleimportpublicthrows
byteelseinstanceofreturntransient
caseextendsintshorttry
catchfinalinterfacestaticvoid
charfinallylongstrictfpvolatile
classfloatnativesuperwhile
constfornewsynchronized

Now if you look above into the table, you can easily notice that every keyword consists of only a single word and starts with a small case letter.

Leave a Reply