wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes About true, false and null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "About true, false and null" Watch "About true, false and null" New topic
Author

About true, false and null

Manish Singhal
Ranch Hand

Joined: Sep 21, 2000
Posts: 104
For the purpose of SCJP2 we should treat them( true, false and null) as Keywords OR NOT.
Manish
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Have you seen our new Certification FAQ??. You will find the answer there!!
Ajith


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Manish Singhal
Ranch Hand

Joined: Sep 21, 2000
Posts: 104
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

Joined: Mar 17, 2000
Posts: 5782
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

Joined: Sep 21, 2000
Posts: 104

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

Joined: Mar 17, 2000
Posts: 5782
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

Joined: Sep 13, 2000
Posts: 18
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

Joined: Sep 21, 2000
Posts: 104
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
 
Don't get me started about those stupid light bulbs.
 
subject: About true, false and null
 
Similar Threads
Is null a keyword?
Key Words
keyword
Null
reserved words