Default value of Boolean in Java? | Sololearn: Learn to code for FREE!
+ 5

Default value of Boolean in Java?

What is the default value of Boolean in Java? Is it the same across all OOPLs?

8th Apr 2017, 1:01 AM
Pixie
Pixie - avatar
4 Answers
+ 6
in java, boolean instance variables default to false
8th Apr 2017, 1:04 AM
Edward
+ 9
Boolean (object) default is null...boolean (primitive) is false.
8th Apr 2017, 2:15 AM
Karl T.
Karl T. - avatar
+ 5
ty
8th Apr 2017, 1:05 AM
Pixie
Pixie - avatar
0
false
8th Apr 2017, 11:46 AM
Eldho Abe
Eldho Abe - avatar