Java Keywords
There are currently 50 reserved keywords defined in the Java programming language. These keywords are special words that are of importance to the Java compiler. Due to this reason these keywords cannot be used as names of variables, class, method or identifier. Even though const and goto are reserved keyword in Java yet these are not used.
| 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 |
Along with the keywords Java reserves another three words for literal value these are true, false and null.
- Tutorial:
