Java contains 53 reserved words out of which 50 are keywords.
Out of 50, only 48 keywords are used and two keywords const and goto are not in use, and 3 are literals values true
These reserved words can not be used as identifiers.
Java Keywords
The keyword is a reserved word that has a predefined meaning in the language, therefore, we cannot use keywords as names as a class, methods, variable names, or as any other identifier. Keywords of java are:
abstract | continue | for | new | switch |
assert | default | goto | package | synchronized |
boolean | do | if | private | this |
break | double | implements | protected | throw |
byte | else | import | public | throws |
case | enum | instanceof | return | transient |
catch | extends | int | short | try |
char | final | interface | static | void |
class | finally | long | strictfp | volatile |
const | float | native | super | while |
const and goto are not in use
strictfp added in jdk 1.2
enum added in jdk 1.5
Read More:
This keyword in Java
Final Keyword in Java
Finally Keyword in Java
Super keyword in Java
try catch in Java
throw and throws in Java
Reference