Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"Words"

 
Javix Protocol
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Todd M Bush
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Theresa and Todd i am alright now.:-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic