The keywords are the words that have particular meaning for a compiler and cannot be used as identificators. There are 51 reserved keywords and 10 restricted keywords. The reserved keywords cannot be used as identificators anywhere in the Java code, while the restricted keywords cannot be used as identificators only in the context of a module declaration.
Reserved and restricted keywords
Reserved keywords
The following is the list of all Java-reserved keywords:
abstract | assert | boolean | break | byte |
case | catch | char | class | const |
continue | default | do | double | else |
enum | extends | final | finally | float |
for | if | goto | implements | import |
instanceof | int | interface | long | native |
new | package | private | protected | public |
return | short | static... |