I found the below paragraph in SCJP 6.0 book. What does it mean by the last statement.Which book to read about how these variables are actually stored in memory?. Thanks a lot.
“That’s virtual-machine dependent.”
For boolean types there is not a range; a boolean can be only true or false. If
someone asks you for the bit depth of a boolean, look them straight in the eye and
say, “That’s virtual-machine dependent.” They’ll be impressed.
It means that the only thing required from boolean is to be true or false, no matter what is the underlying implementation.
JLS states:
Where for integral types:
So you have required bit depth for integral types but it is solely up to you if your boolean will be represented in the memory as a single bit, byte or multibyte variable when you implement your own JVM.