File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reserved words

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 1467
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Maha

Vijay
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic