A boolean is a true or false value, and can be stored in a lonely, single bit of memory. BUT, as Marc noted, the exact requirements are not outlined in the spec, and some operating systems cannot write to a bit, but minimally, to a byte, so a byte might end up being used by default, even thout only a bit is required.
Some JVMs actually write a boolean bit to a byte of memory. A second bit gets written into the same byte, and so on, and so on, until the entire byte is consumed.
So, a boolean value, can be represented by a single bit of memory. How much memory a JVM actualy uses is a different story, and fortunately, JVM intricacies are not tested on the SCJA exam.
From the Sun Tutorials
boolean: The boolean data type has only two possible values: true and false. Use this data type for simple flags that track true/false conditions. This data type represents one bit of information, but its "size" isn't something that's precisely defined.
By the way, you're not the only one to cut me some flack for throwing that one in there.
-Cameron McKenzie
[ January 12, 2007: Message edited by: Cameron W. McKenzie ]
[ January 12, 2007: Message edited by: Cameron W. McKenzie ]