This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Bobby Since everyone else is quoting from Kathy and Bert's new book today, I will too As you can see, in addition to explaining Java, the book provides a lot of information about the exam, and what will and won't be tested.
According to the Java Language Specification, null, true, and false are technically literal values (sometimes referred to as manifest constants) and not keywords. Just as with the other keywords, if you try to create an identifier with one of these literal values, you�ll get a compiler error. For the purposes of the exam, treat them just as you would the other reserved words. You will not be asked to differentiate between reserved words and these reserved literals
[ January 08, 2003: Message edited by: John Paverd ]
Notice that the JLS and the Java Programming Language do not classify words as "reserved words". They say keywords are reserved. They say true, false and null are literals. Keywords are reserved character sequences and cannot be used as identifiers. You cannot use language keywords as identifiers because they have special meaning within the language. literals are the source code representation of values of a type. true, false and null are literals. You cannot use true, false or null as identifiers just as you cannot use 12 as an identifier. [ April 06, 2003: Message edited by: Marlene Miller ]