Appendix D Java Keywords
The words shown in Table D.1 are reserved for use as Java keywords and cannot be used as identifiers. The keywords
const
and goto
, which are C++ keywords, are not actually used in Java. They were included mainly to enable better error messages to be generated when they are mistakenly used in a Java program.The words
true
, false
, and null
may look like keywords but are technically considered literals. They also cannot be used as identifiers.