• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Is null a keyword?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
null, true and false are not keywords, they are reserved literals
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
true,false,null are not Java Keywords, they are reserved
words.U can check keywords at Sun site. And volatile is
also keyword.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
And inside of my fortune cookie was this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic