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
Joined: Apr 26, 2000
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
Joined: Feb 16, 2000
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.