In Java programming language, there are some keywords. The keywords are reserved words that have a special meaning and perform specific tasks. Note that these keywords cannot be used to name a constant or a variable as these are reserved words. In this case java compiler will show error. Here is a list of keywords used in this programming language:
Java Keywords
abstract | assert | boolean | break |
byte | case | catch | char |
class | const | continue | default |
do | double | else | enum |
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 |
All keywords are in lower case letters. Note that since this programming language is a case sensitive language so user must use the exact syntax defined for keywords. We will read the details about these keywords separately in the next sections.