jQuery in Action, 2nd edition*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "null" Watch "null" New topic
Author

null

Albertina Gonzalez
Greenhorn

Joined: Apr 23, 2002
Posts: 11
is null a reserved key for java
(exam Quiz, jamie jaworkski)
Charu Murali
Ranch Hand

Joined: Jul 12, 2002
Posts: 37
hi, null is a reserved word and not a key word.
see this link. http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#229308
Kumar Kausikasa
Ranch Hand

Joined: Jun 04, 2002
Posts: 45
Hi,
I would say it is "null" literal.
Literal means source code representaion of primitive type. (As specified in the link)
Praveen
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
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).
Albertina Gonzalez
Greenhorn

Joined: Apr 23, 2002
Posts: 11
I know the null, true and false are literals, but for the exam they are considereted keywords no???
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Has anyone ever been asked on the exam the question:
Is null a literal, keyword, or reserved word?
Somehow I doubt it.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
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


SCJP Tipline, etc.
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
The question I was asked on the SCJP 1.2 exam was:
[Exam question deleted by Val]
[ August 25, 2002: Message edited by: Valentin Crettaz ]

Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Patrick Ansari
Greenhorn

Joined: Feb 23, 2002
Posts: 8
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 ]
 
 
subject: null