Here are the list of Java keywords, up to date to Java 5, and if no new keywords have been introduced lately, it should be up to date for Java 6 as well. Please correct me if I'm wrong.
By the way, notice that true and false are not keywords in Java. Instead, they are 'reserved words' or 'java literals.' That always bugs people. :)
***Java Keywords***
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 |
* | | not used |
** | | |
*** | | |
**** | | added in 5.0 |
No comments:
Post a Comment