boolean only needs 1 bit, but Java allocates 8 bits for it.
Kishan Kumar
Ranch Hand
Joined: Sep 26, 2000
Posts: 130
posted
0
Hi, Another small addition, It is made ot occupy 8 bits though it requires only one bit because an individual bit is not addressable. the small unit of memory that is addressable is a byte which is a stream of 8 bits.That is why a boolean needs 8 bits. Hope this helps
------------------ Regards, V. Kishan Kumar
Regards,<BR>V. Kishan Kumar
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.