A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
how many bits premitive boolean take ?
Joined: Apr 04, 2001
Jun 20, 2001 03:26:00
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.
Joined: Jun 20, 2001
Jun 20, 2001 03:53:00
Hi, Booleans will take 1byte or 8bits size of memory size. O.k i think it's some wrong printing. I think so.
I agree. Here's the link:
subject: how many bits premitive boolean take ?
BLISS, the language (was "Truely Meaningless")
How "boolean" work?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014