File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Reserved words Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Reserved words" Watch "Reserved words" New topic

Reserved words

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
"Bill Brogden - Java 2 exam cram" says following are reserved words but not used, they are reserved for future.
byvalue, future, inner, rest, cast, generic, operator, var, outer.
I tried to look other references to varify this but could not find it. I tried compiling some programs using these words as variables and could compile the in jdk1.2.2.
Can some one provide some references/insight on this.
Thank you in advance,
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Bill's errata page has this updated list of keyword. Please refer to this
The extra words given from Bill brogden will not be asked in the Exam in my opinion. He also dropped all the confusion in his updated list.
maha anna
Here's a list of Java's keywords from Sun. These words are reserved--you cannot use any of these words as names in your Java programs. true, false, and null are not keywords but they are reserved words, so you cannot use them as names in your programs either.
abstract double int strictfp **
boolean else interface super
break extends long switch
byte final native synchronized
case finally new this
catch float package throw
char for private throws
class goto * protected transient
const * if public try
continue implements return void
default import short volatile
do instanceof static while

* indicates a keyword that is not currently used
** indicates a keyword that was added for Java 2

[This message has been edited by maha anna (edited April 13, 2000).]
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thank you very much Maha

I agree. Here's the link:
subject: Reserved words
It's not a secret anymore!