What are keywords?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What are keywords?
Rating:
Every computer language uses some reserved words known as keywords. They are an essential part of the language. In Java, keywords are defined in lower case and cannot be used as identifiers.
The table given below shows the list of keywords used in the Java language:
| abstract | assert | boolean | break | byte | case | catch |
| char | class | const | continue | default | do | double |
| else | extends | final | finally | float | for | goto |
| if | implements | import | instanceof | int | interface | long |
| native | new | package | private | protected | public | return |
| short | static | strictfp | super | switch | synchronized | this |
| throw | throws | transient | try | void | volatile | while |
The keywords 'const' and 'goto' have not yet been implemented in Java. Java has reserved them for use in future expansion of the language.
Rating:
Was this information helpful?
Other articles
- What is NumberFormatException?
- What is the FileOutputStream class?
- What is a File class?
- What is the instanceof operator?
- What is the Set interface?