• 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

Words reserved but not used

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
In Bill Brogden's Exam Cram book he gave a table 2.2 "Words reserved but not used currently." in Lesson Language Fundamentals page 17(in my book).
byvalue
future
inner
rest
cast
generic
operator
var
const
outer

I haven't heard of these before or haven't seen these in RHE's book or Khalid's book.
Can anyone confirm me if these are included in the exam.
thanks
chandra!
[This message has been edited by chandrashekar munukutla (edited August 01, 2001).]
 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You r right !
Only goto and const are reserved words which are not used.Rest you can use freely in your code and compiler does not complain.This means they are not reserved words.
Am i rite??
Thanx
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
1. goto
2. const
3. strictfp
Sun has recently added strictfp to the reserved keywords list.
Rammohan
 
Ranch Hand
Posts: 2379
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi all,
It is really confusing to hear something like that list.
Anyway we should think that only the above three are reserved words not the whole list.

------------------
azaman
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
strictfp is used.
------------------
Tom - SCJP --- Co-Moderator of the Programmer Certification Forums
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"strictfp is used" means strictfp is a reserved word. Correct?
I tried compiling a prog with strictfp as an identifier and it did not so I am thinking that it is a reserved word. Let me know if it is otherwise.
 
Thomas Paul
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
strictfp is a reserved word and it is used in java: See:
http://developer.java.sun.com/developer/JDCTechTips/2001/tt0410.html#using
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You must have an early printing of Exam Cram.
That list of reserved words was in use in early versions of Java. Unfortunately when Sun cut a number of words out they didn't publicize the fact. That list ended up in "Java in a Nutshell" the best selling reference from O'Reilly, which is what I checked when creating that table.
A correction is part of the errata for the book, on line at: http://www.lanw.com/books/errata/
Later printings got corrected.
No matter which study guide you are using, better check the errata.
Bill

------------------
author of:
 
Vaneet Bhutani
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then how come, I can not use "strictfp" as a variable/identifier (I get compilation errors).
Is it a recent addition? Or could it be b/c I have older compiler.
 
Thomas Paul
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Vaneet Bhutani:
Then how come, I can not use "strictfp" as a variable/identifier (I get compilation errors).
Is it a recent addition? Or could it be b/c I have older compiler.


Look at the post by me above (right above Bill's).
In case you can't find it:


strictfp is a reserved word and it is used in java: See:
http://developer.java.sun.com/developer/JDCTechTips/2001/tt0410.html#using


 
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

Thanks Bill,
Good to know that I have old version of Exam Cram also.
But I am confused with the Book version numbering you have given.
It says "On page 16<1,2,3,4>" Which indicates that it is 4th print of the book. For my book print it is 10 9 8 7 6
Which means that it is 6th printing right.
I thank you for the advise to check the errata. Actually after buying some books I came to know about that. I already checked the errata for Khalid and RHE. Also checked for your book but was misleaded by numbering.
Thanks
Chandra!
 
Rammohan Meda
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Thomas for your URL about strictfp usage.
Rammohan
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic