what is the size of boolean data type in java?
developer@india
0
Newbie Poster
Recommended Answers
Jump to PostIt has two possible values: true and false.
What exactly do you want to know? eg:
If I add a single boolean variable to my class how much bigger is each instance I create?
or
If I write a single boolean to a file how big is the file?
…
Jump to PostOne byte of menory is requested for storage of a value/variable of boolean data type
All 7 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
tong1
22
Posting Whiz
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
tong1
22
Posting Whiz
chaospie
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.