Previous | Home | Next |
Keywords are the reserve words of a language whose meaning is defined by language itself. we cannot used these keywords as the identifiers or like anything else.
There are 50 keywords in java are following:
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 |
But, The assert keyword was added by java 2 version jdk 1.4
The enum keyword was added by java 2 version jdk 1.5
The keyword const and goto are reserve words but not are used.
Previous | Home | Next |