This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About true, false and null

 
Manish Singhal
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the purpose of SCJP2 we should treat them( true, false and null) as Keywords OR NOT.
Manish
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you seen our new Certification FAQ??. You will find the answer there!!
Ajith
 
Manish Singhal
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ajith but please put some light on this
www.enthuware.com/jqplus/FAJQuestions.html
It says something else.... WHAT SHOULD I DO NOW.

Manish
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technically they are literals and not keywords. Take a look at JLS Section 3.9 Keywords.
However, I agree with what has been said in the link you provided, that in the exam, if you are required to separate keywords from non-keywords then consider them to belong to the keywords list.
Ajith
[This message has been edited by Ajith Kallambella (edited October 04, 2000).]
 
Manish Singhal
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ajith u mean to say that I should MARK them ( true, false, null) AS KEYWORDS in the exam !!!
Hope to get a reply from you.

[This message has been edited by Manish Singhal (edited October 04, 2000).]
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YES!! - I did the same and got it right
Ajith
[This message has been edited by Ajith Kallambella (edited October 04, 2000).]
 
Vaneet Bhutani
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Per Sun Ed.'s book for Java Prog.(SL-275), pg 2-10 & JAVA 2 cert. guide(RHE), pg 1-6, null, true, and false are keywords.
The two reserved keywords are: goto & const.

If this is incorrect, would someone please point out.

Thanks,
Vaneet
 
Manish Singhal
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vaneet
In Sun Ed. Services book its mentioned that true, false, null are NOT KEYWORDS but literals , same thing Ajith is saying BUT now I will follow Ajith and will consider them as KEYWORDS for exam pt. of view.
Manish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic