Java Reference
In-Depth Information
8.3.
Boolean
The
Boolean
class represents the
boolean
type as a class. Both the con-
structor that decodes a string, the
valueOf
method and the
parseBoolean
method understand
"TRue"
, with any mixture of uppercase and lowercase
characters, to be
TRue
. Any other string is interpreted as
false
.
The
Boolean
class has two static references to objects corresponding to
each of the primitive boolean values:
Boolean.TRUE
and
Boolean.FALSE
.