This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Reserved words" Watch "Reserved words" New topic
Author

Reserved words

Anonymous
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,
Vijay
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Vijay,
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.
regds
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).]
Anonymous
Ranch Hand

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

Vijay
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reserved words
 
Similar Threads
New SCJP Exam format
keywords
keywords/reserved words
How many Keywords are their
"Words"