Friday, July 4, 2008

Are there any new keywords in Java 6?

I was just wondering to myself if Java 1.6 introduced any new keywords. Java 1.5 introduced enum, and Java 1.4 introduced assert. You'd think something was added in Java 6, but I couldn't find any evidence of such an assertion.

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: