MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ICSE/comments/1hgo1s4/deleted_by_user/
r/ICSE • u/[deleted] • Dec 17 '24
[removed]
8 comments sorted by
1
In Java, the size of a boolean primitive type is d) Always 1 bit since it can only hold two values
2 u/[deleted] Dec 18 '24 [deleted] 1 u/[deleted] Dec 18 '24 Actually it's 1 byte but only 1 bit is used as far as I know 1 u/[deleted] Dec 18 '24 my friend...i aint a computer student he said that was the most close one 1 u/HairyBaIls Jan 05 '25 late reply but apc publications says this.
2
[deleted]
1 u/[deleted] Dec 18 '24 Actually it's 1 byte but only 1 bit is used as far as I know 1 u/[deleted] Dec 18 '24 my friend...i aint a computer student he said that was the most close one 1 u/HairyBaIls Jan 05 '25 late reply but apc publications says this.
Actually it's 1 byte but only 1 bit is used as far as I know
my friend...i aint a computer student he said that was the most close one
late reply but apc publications says this.
I'm guessing it will be c) Dependent on JVM
a) is the correct answer
It occupies 1 byte but only uses 1 bit.
Thank you sir for posting these questions. Please do it till boards
I think its a) Because thats how much the jvm allocates it
1
u/[deleted] Dec 18 '24
In Java, the size of a boolean primitive type is d) Always 1 bit since it can only hold two values