This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how many bits premitive boolean take ?
 
Similar Threads
Boolean Size
AssertionError
How "boolean" work?
BLISS, the language (was "Truely Meaningless")
bit depth