Two Laptop Bag
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes keyword Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "keyword" Watch "keyword" New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Is null a key word???
are true & false keywords??
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
Originally posted by javaji:
Is null a key word???
are true & false keywords??

No, none of these are keywords, keywords are modifiers, operators, primitive datatypes etc.
null, true and false are literal values just like 1 or 2.0 (an integer and double literal). Since they are literal values, the are also reserved words which means that you cannot use them as identifiers.

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
I agree. Here's the link:
subject: keyword
It's not a secret anymore!