Hi Charu: Excript from your quote: While true and false might appear to be keywords, they are technically Boolean literals (�3.10.3). Similarly, while null might appear to be a keyword, it is technically the null literal (�3.10.7).
Joined: Apr 23, 2002
I know the null, true and false are literals, but for the exam they are considereted keywords no???
Originally posted by Thomas Paul: Has anyone ever been asked on the exam the question: Is null a literal, keyword, or reserved word? Somehow I doubt it.
On the exam, you don't need to know the difference between keywords and literals. You need to only be familiar with the set of "reserved words", which is the superset of all keywords and literals. For clarity, however, null is a literal in Java, not a keyword. Corey
In the Complete Java 2 Certification Study Guide by Hellers et al it says that the exam avoids asking questions where you need to distinguish between the two as it is highly ambiguous and there is no point in asking this as long as you know that you can't use these words as identifiers etc. [ August 25, 2002: Message edited by: Patrick Ansari ]