 |
boolean
The boolean primitive represents a logical true or false. The Boolean object is a wrapper class for boolean.
Rules
- boolean variables can only take the values of true or false .
- boolean variables cannot be converted to any other primitive type nor can any other primitive type be converted to a boolean.
- The effective representation size of a boolean is 1 bit.
- When a boolean array is constructed, each element is initialized to a default value of false .
Discussion about boolean
|