• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how many bits premitive boolean take ?

 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic