jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "keywords vs reserved words" Watch "keywords vs reserved words" New topic

keywords vs reserved words

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,
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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.
Surya K
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
There are 50 keywordand other reserved words that should not be used as identifers.
goto & const are reserved works with no meaning at the present time for jdk 1.2
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
It's not a secret anymore!