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 Beginning Java and the fly likes 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 » Java » Beginning Java
Bookmark ""Words"" Watch ""Words"" New topic
Author

"Words"

Javix Protocol
Ranch Hand

Joined: Mar 21, 2000
Posts: 57
I have a very genuine doubt for everyone here.
What is a "keyword" in Java.?
What are "reserved words" in java?
What are "reserved keywords" in java?
What are null,true and false?

In Simon Roberts goto and const are reserved he is telling.Then
is it a reserved keyword or reserved word?Come on let us discuss.

------------------
The Javix


Write Once , Run Anytime ,Anywhere Forever And Smile Happily.
Todd M Bush
Greenhorn

Joined: Apr 26, 2000
Posts: 22
It is my understanding that keywords and reserved words are basically the same with one difference, some reserved words are not used by the language. In other words, all keywords are reserved, but not all reserved words are keywords. Some reserved words that are not keywords include byvalue, cast, const, future, generic, goto, inner, operator, outer, rest, and var. null, true, and false would be reserved keywords.
Someone please tell me if I'm wrong.
Todd
Theresa Duick
Greenhorn

Joined: Feb 16, 2000
Posts: 27
The following are not reserved words in Java: byvalue, cast, future, generic, inner, operator, outer, rest, or var. Also, const and goto are reserved words, but my understanding is that they have been referred to as keywords on the cert exam. It seems that reserved & keyword are used interchangably by the cert exam. Null, true, & false are correct as keywords. There are a bunch of other keywords. I'd recommend checking with an exam prep reference book to learn all of the keywords.
Javix Protocol
Ranch Hand

Joined: Mar 21, 2000
Posts: 57
Thanks Theresa and Todd i am alright now.:-)
 
Don't get me started about those stupid light bulbs.
 
subject: "Words"