This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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 ?