Quote from Sun:
Section 4: Language Fundamentals
...
Identify all Java programming language keywords. Note: There will not be any questions regarding esoteric distinctions between keywords and manifest constants.
Now for something useful: On the exam look for words such as
instanceOf, sizeof friend virtual include
which look like they might be Java reserved words, but they are not.
The Java Language Specification refers to 49 words (yes I know jls2 had only 48 because "assert" was not there) as Keywords.
The 52 words of interest (which include null, true, false) are NOT allowed to be used as identifiers in Java.
Quote from JLS Second Edition:
3.9 Keywords
The following character sequences, formed from ASCII letters, are reserved for use as keywords and cannot be used as identifiers (�3.8):
[all words that we are interested in except for null true false omitted for brevity]...
The keywords const and goto are reserved, even though they are not currently used. ...
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).
[ October 01, 2004: Message edited by: Louie van Bommel ]