The moose likes Mock Exam Errata and the fly likes Is  null   a keyword? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Mock Exam Errata
Reply Bookmark "Is  null   a keyword?" Watch "Is  null   a keyword?" New topic
Author

Is null a keyword?

Gundi Krueger
Greenhorn

Joined: Jun 21, 2000
Posts: 1
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
null, true and false are not keywords, they are reserved literals
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
true,false,null are not Java Keywords, they are reserved
words.U can check keywords at Sun site. And volatile is
also keyword.
GVS
Greenhorn

Joined: Sep 19, 2000
Posts: 6
Here is a link on the Sun web site containing a list of keywords.
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
 
IntelliJ Java IDE
 
subject: Is null a keyword?
 
Threads others viewed
Thanks...Everybody
is null a keyword..?
Help needed for Java Certification
null is a keyword?
Difficulty in the K&B Books
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture