Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Size of boolean datatype

807598May 31 2006 — edited May 31 2006
hi all,

Can anyone tell me, how many bytes are taken by a boolean variable.
Pls support ur answer.
Also let me know, Is there any method in java to calculate the size of
a particular datatype, like sizeof() in c/c++.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2006
Added on May 31 2006
16 comments
662 views