S
Stefan Ram
The JLS contains this wording:
»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).«
Does it matter?
Can you find any program, where one can observe the difference?
E.g., some program that does compile because they are not keywords,
but would not compile when they were keywords, or vice versa?
Or are there any other observable consequences of this difference?
»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).«
Does it matter?
Can you find any program, where one can observe the difference?
E.g., some program that does compile because they are not keywords,
but would not compile when they were keywords, or vice versa?
Or are there any other observable consequences of this difference?