|
|
|
| |
Boolean
ARefers
to an expression or variable that can have only
a true or false value. The Java programming
language provides the boolean type and the literal
values true and false called boolean. The boolean
type deals with only a single bit at a time.
An immutable object wrapper around a boolean
is called a Boolean. You can do boolean operations
on ints or ints, many bits at a time using &,
|, ^ and ~. With boolean, you can only process
one bit at a time, typically with !, &&
and ||. For bit strings longer than 64 bits,
use java.util.BitSet. Even experienced programmers
sometimes lapse into redundant newbie-like baby
talk when using booleans. To avoid that embarrassement
.
|
|