This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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

Suresh
Ranch Hand

Joined: May 08, 2000
Posts: 76
Hi buddies,
What actually is the difference between keywords and reserved words?
Java tutorial says 'true, false and null' are not key words but are reserved words. It says you can't use both reserved as well as keywords as identifiers.

Thanks in advance,
Regards,
Suresh.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
What you are saying is absolutly correct that keywords as well as reserved words we should not use it for identifiers.
To me I could differentiate only one thing. The reserved words 'true', 'false' and 'null' are values. I mean like numbers, alphabets for human's these are values for computers.
I guess so... don't worry much about this. But you should know which is keyword and which one is reserved words. That's all needed for the exam.
thanks,
Surya K
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
FYI,
There are 50 keywordand other reserved words that should not be used as identifers.
Note:
goto & const are reserved works with no meaning at the present time for jdk 1.2
Source:
SYBEX Java 2 Certification Study Guide page 6.

[This message has been edited by monty6 (edited May 30, 2000).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: keywords vs reserved words