JVLS wrote:Although the Java Virtual Machine defines a boolean type, it only provides very limited support for it. There are no Java Virtual Machine instructions solely dedicated to operations on boolean values. Instead, expressions in the Java programming language that operate on boolean values are compiled to use values of the Java Virtual Machine int data type.
Suresh Regmi wrote:Roel, for both with small b and Capital B.
It does not say anything about how much storage is used for a double, but says that doubles include the IEEE 754 64 bit foloating‑point numbers. Similarly it says nothing about storage for a boolean.
The integral types are byte, short, int, and long, whose values are 8-bit, 16-bit, 32-bit and 64-bit signed two's-complement integers, respectively, and char, whose values are 16-bit unsigned integers representing UTF-16 code units (§3.1).
The floating-point types are float, whose values include the 32-bit IEEE 754 floating-point numbers, and double, whose values include the 64-bit IEEE 754 floating-point numbers.
The boolean type has exactly two values: true and false.
And Java is a platform independent language, so storage wise a boolean on a Windows 64-bit machine might be different from a boolean on a Mac OS X machine...
But it does mean independence of processor and OS.
Sachin Tripathi wrote: . . . Being platform independent doesn't means independent of os and processor . . .