Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #26563

Re: the true literal

From "Qu0ll" <Qu0llSixFour@gmail.com>
Newsgroups comp.lang.java.programmer
References <true-20131122032105@ram.dialup.fu-berlin.de>
Subject Re: the true literal
Date 2013-11-22 14:02 +1100
Message-ID <zK6dnctvYvLpVBPPnZ2dnUVZ_hSdnZ2d@westnet.com.au> (permalink)

Show all headers | View raw


"Stefan Ram"  wrote in message 
news:true-20131122032105@ram.dialup.fu-berlin.de...

>  The JLS says:
>
>      »While true and false might appear to be keywords,
>      they are technically Boolean literals (§3.10.3).«
>
>  What is a keyword?
>
>  I used to think that a keyword is a words whose meaning is
>  given by the language specification and that cannot be
>  declared as an identifier in source code. I believe that all
>  of this applies to »true«. So, why then it is not called a
>  keyword in Java?

Do the terms "keyword" and "literal" have to be mutually exclusive?  To me, 
'true' and 'false' have properties of both terms though I would favour 
'literal' if I had to make a choice.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me] 

Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

Re: the true literal "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-11-22 14:02 +1100

csiph-web