aspose file tools
The moose likes Beginning Java and the fly likes how many bits  premitive boolean take ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "how many bits  premitive boolean take ?" Watch "how many bits  premitive boolean take ?" New topic
Author

how many bits premitive boolean take ?

prateek narang
Greenhorn

Joined: Apr 04, 2001
Posts: 19
hi1 everybody...
In Thinking in Java it is written that boolean type variable take 1 bit. but in Heller's book it is written that it takes 8 bit. which one is right.
prateek
rajesh kota
Greenhorn

Joined: Jun 20, 2001
Posts: 2
Hi, Booleans will take 1byte or 8bits size of memory size. O.k i think it's some wrong printing. I think so.
Thank u
Rajesh.k
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how many bits premitive boolean take ?
 
Similar Threads
BLISS, the language (was "Truely Meaningless")
Boolean Size
bit depth
How "boolean" work?
AssertionError