Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how many bits premitive boolean take ?  RSS feed

 
prateek narang
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!