File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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).]
 
Don't get me started about those stupid light bulbs.
 
subject: keywords vs reserved words
 
Similar Threads
about keywords
keywords
reserved and keywords
keywords
Jai Question : 4 on keywords