This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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.:-)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: "Words"
 
Similar Threads
Tom is in the "3000" club!
is null a keyword..?
sun.net.NetworkServer
is strictfp a reserved word ?? appliedreasoning exam
Position applying for - sixty-nine