In C and C++, true and false are just alternate names for 1 and 0. In Java, true and false are distinct values; they are not 1 and 0.
true
false
1
0