permaculture playing cards*
The moose likes Beginning Java and the fly likes how many bits  premitive boolean take ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how many bits premitive boolean take ?
 
Similar Threads
BLISS, the language (was "Truely Meaningless")
How "boolean" work?
AssertionError
bit depth
Boolean Size