• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

keywords

 
Rudra Kumar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are "null,true & false" keywords?
the JAVA2 cert. guide by roberts&heller say so.
but the Java Language Specification doesn't mention these as keywords.
help me.
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question will be can you use those as identifiers in your code? The answer is NO because they are all Java reserved words.
 
Rolf Weasel
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If u look carefully at the heading of the table in R&H, it says Keywords and Reserved Words.
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looked carefully. And? Do you disagree with my previous statement?
 
Rolf Weasel
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony, rudra is not talking about a question at all. On Chapter 1, page 6, table 1.1 of Java2 R&H, there is a list with the heading Java Keywords. It includes null, true and false. But if u look at the text under the heading Keywords and Identifiers, it says, and i quote,
The Java language specifies 50 keywords and other reserved words, which are listed in Table 1.1.
That's another one for the errata...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic