The Source for Java Technology Collaboration


Home | Help | Changes | Index | Search | Go

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

Topic BooleanPrimitive . { Edit | Ref-By | Printable | Diffs r2 < r1 | More }
 XML java.net RSS

Revision r2 - 31 Aug 2003 - 03:22:27 - Main.redwolf
Parents: WebHome > Glossary > Primitive > Boolean