A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
A query on keywords
Joined: Feb 11, 2007
Mar 12, 2007 00:00:00
are not enlisted in the complete list of keywords of the K&B book, page 6. It should mean that i can use these as identifiers in my code. But complier detects error if i do so. Why aren't these words enlisted in the list then?
Silence is the true Friend that never betrays...
Joined: Mar 05, 2007
Mar 12, 2007 00:21:00
Null, false and true are not listed in reserved keywords cause they are actually literals. Hence cannot be used as an identifier.
And FYI, literals are constant value (
or number) used in
A link to a good read is provided below:
Sunil.V<br />SCJP2, SCWCD1.4, SCBCD1.3
I agree. Here's the link:
subject: A query on keywords
IMP!- can, boolean literals (true, etc),unused reserved words,BE CALLED Keywords ?
Reserved Words vs Keywords
Reserved words vs. keywords
Keywords and reserved words in Java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014