aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes keywords Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "keywords" Watch "keywords" New topic
Author

keywords

Rudra Kumar
Greenhorn

Joined: Feb 15, 2002
Posts: 4
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

Joined: Jan 30, 2000
Posts: 3222
    
    5
The question will be can you use those as identifiers in your code? The answer is NO because they are all Java reserved words.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Rolf Weasel
Ranch Hand

Joined: Feb 26, 2000
Posts: 82
If u look carefully at the heading of the table in R&H, it says Keywords and Reserved Words.


May the Moose be with you.
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
I looked carefully. And? Do you disagree with my previous statement?
Rolf Weasel
Ranch Hand

Joined: Feb 26, 2000
Posts: 82
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...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: keywords