This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes reserved words Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "reserved words" Watch "reserved words" New topic

reserved words

Val Lee
Ranch Hand

Joined: Nov 27, 2001
Posts: 41
true,false,null is reserved words in Java?

Val SCJP2 1.2<br />====>SCJD
veda patil

Joined: Jul 09, 2002
Posts: 16
true,false ,null are reserved literals.
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

Check out the Java Language Specification --�3.9: Keywords
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Originally posted by Val Lee:
true,false,null is reserved words in Java?

For the sake of the SCJP exam, however, you do not need to differentiate between keywords and literals. Just know which words are already reserved for a special purpose. Basically, you can lump literals and keywords together into a master set of "reserved words."

SCJP Tipline, etc.
Dan Chisholm
Ranch Hand

Joined: Jul 02, 2002
Posts: 1865
Although Val didn't mention my mock exam, I assume that he was probably confused by some new questions that were added yesterday. I didn't realize that Sun does not require a person to differentiate between the set of keywords and the set of literals. To clear up the confusion, I changed the wording of the questions to make it obvious that my exam does differentiate between the two. The following is an example of the new wording.

The following words have been selected from the set of java keywords, java literals, and words from other programming languages. Which of these words belong to the set of java keywords?

I also added the following sentence to the remark associated with each answer related to keywords.

Keywords and literals are reserved and can not be used as identifiers.

The answers to the questions remain unchanged.
I agree with Sun in that the most important skill is the ability to recognize which words are reserved by Java and can not be used as identifiers. A Secondary skill is the ability to avoid confusion between Java keywords and familiar keywords from other programming languages such as C, Basic, and Pascal. A less important skill is the ability to understand the technical difference between a keyword and a literal.
I thought about removing the literals from my questions, but there are really only three that cause confusion--true, false, and null. I have come to the conclusion that learning the three is not too difficult.

Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="" target="_blank" rel="nofollow">Try my mock exam.</a>
Val Lee
Ranch Hand

Joined: Nov 27, 2001
Posts: 41

Thank all's replys
Thank Dan Chisholm's good and hard Mock Exam!
I agree. Here's the link:
subject: reserved words
It's not a secret anymore!