• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reserved words

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Maha

Vijay
 
reply
    Bookmark Topic Watch Topic
  • New Topic