Data type | SoloLearn: Learn to code for FREE!

+9

Data type

What is the size of boolean data type ?

1

2/27/2017 9:47:27 AM

{ sood(Hemant , Prakash); }

2 Answers

New Answer

+8

Size of boolean in most cases is 1 byte but out of that only 1 bit is used as it can contain only two values (2^1=2) 1.true 2.false .The rest 7 bits are not used :)

+4

9 byte in java.