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