When i convert:
int B=1;
boolean A=B;
It gives error: Incompatible types, which is true
But when I write this code:
int C=0;
boolean A=C==1;
it gives false while if I change value of C to 1 it gives true. I don't understand how compiler is doing it.