• 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

true/false/null/strictfp

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've seen several posts relating to whether or not true/false/null are in fact keywords. There doesn't seem to be a clear consensus. If read that null is a keyword and the other 2 are not. I've read that none of the 3 are. I've also read that all 3 are.
Equally troubling, there seems to be a new keyword: 'strictfp'
Bottom line: if you asked on the exam what do you put???
Are they or aren't they???
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yep, another annoying question.
According to JLS, true false and null are literals. It says, technically they are not keywords.
If you want to lose some sleep tonight, take a look at Brodgen's Exam cram. There are a host of keywords which are not in the JLS. Who is right? God knows!!
About what to do in the certification if you get such a question, my guess is good as yours. I would probably stare at the question for 6.5 seconds, toss a coin, and choose one ....unless some from our zillion SCJPs advice otherwise.

Ajith
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please refer to another post of this same nature
Just keep this in mind . Out of the given words, Whether you can use that particular word as a name for a var in a Java program ?. If no, then it is the reserved/keyword or whatever. Since true , false , null , strictfp CAN NOT BE USED as name for a var, we have to treat them are reserved words.
Also take a look at the TABLE pointed out in the above link.
regds
maha anna
[This message has been edited by maha anna (edited May 10, 2000).]
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can give some advice in this area.
You can safely assume that you would have at least one question that asks you to identify the keywords. I can't give you the exact words that were listed (as Sun gets a little upset giving the answers to questions). I can tell you that the choices given are very clear. Use the JLS as your guide and not these 3rd party books. I can give one piece of advice...all of the words are lowercase. If you get a word in all caps, it is NOT a keyword.
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MA, thanks for the clarification. My angry fumes have vaporized now, and I am feeling a lot

Ajith
 
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
I don't know for sure, (and I'd like to since I am taking the exam tomorrow) but my guess is that the exam will not test on these new words, since they haven't used them yet. I also bet that they won't ask anyone to tell the exact type for null, true and false (literals vs reserved) Of course, I may be screaming bloody murder tomorrow at this time...
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We shd see every one's (including Maha) face and the actions the previous day of the test. and after the test I understand your words.
YOu will do very well.
regds
maha anna
 
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 for the encouragement, Maha Anna! Hey, are you in RTP? Me too!
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. So we are becoming close geographically.
regds
maha anna
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Add me to the gang!. I am in RTP too!!
Ajith
 
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
Ajith - we met at the RTP Java Users Group meeting in March. See you Monday at the next one? Maha Anna, are you coming? See http://www.rtpjug.org for details...
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I try to come. Thanks for calling.
regds
maha anna
 
reply
    Bookmark Topic Watch Topic
  • New Topic