Two Laptop Bag*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes keywords vs. reserved words Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "keywords vs. reserved words" Watch "keywords vs. reserved words" New topic
Author

keywords vs. reserved words

Christy Smith
Greenhorn

Joined: Aug 15, 2001
Posts: 26
Hi, All
Does the certification exam test about reserved words at all?
I believe that reserved words and keywords are different, right?
also is strictfp a reserved words?
Thanks,
Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
reserved words are words that Java reserved that programmers can't use as identifiers. keywords are a subset of reserved words that are actually used in Java. Examples of reserved words that are not keywords are goto, const.
No, strictfp is neither a reserved word not a keyword.
Guoqiao Sun
Ranch Hand

Joined: Jul 18, 2001
Posts: 317
Hi, Cameron, <code>strictfp</code> is a keyword. You can test it with compiler.
Regards,
Guoqiao
Originally posted by Cameron Park:
reserved words are words that Java reserved that programmers can't use as identifiers. keywords are a subset of reserved words that are actually used in Java. Examples of reserved words that are not keywords are goto, const.
No, strictfp is neither a reserved word not a keyword.


Guoqiao Sun<br />SCJP2 SCWCD2<br />Creator of <a href="http://www.jiris.com/" target="_blank" rel="nofollow">www.jiris.com</a>, Java resource, mock exam, forum
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Christy,
The objectives state you'll be tested on keywords and identifiers. All the keywords are listed in JLS §3.9. Note that goto, const and strictfp ARE keywords. They cannot be used as identifiers.
The words true, false and null are not keywords. They are literals AND you cannot use them as identifiers.
You need to be able to identify keywords; usually having to select valid or invalid keywords from a list. You also may see questions asking you to identify legal and illegal identifiers.
Hope that helps.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: keywords vs. reserved words
 
Similar Threads
java reserved words again....
reserved and keywords
keywords
confusion with the question
keywords or reserved words?