In the "Complete Java2 Certification Study Guide" from 1999 on page 6 of chapter 1 there is a list of Java keywords. Included in this list is the term null On the mock exam CD coming with the book, it is asked if null is a keyword, and it is wrong to say it is not. In other mock exams the term null is NOT a keyword. So you are wrong if you follow the official guide. We checked various books today but didn't come to any conclusion. It seems they can't decide if it is or if it isn't. Similar with volatile. Some books mention them as reserved, some not at all (Java2), some say it is a keyword. Which book am I to trust regarding the exam?
Justin Moore
Greenhorn
Joined: Jun 27, 2000
Posts: 22
posted
0
null, true and false are not keywords, they are reserved literals
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
true,false,null are not Java Keywords, they are reserved words.U can check keywords at Sun site. And volatile is also keyword.