can anyone tell me why it prints out 1? I know for sure that true and false AND EXCLUSIVE gives 0. why it enters in if statement?
public static void main(String[] args) {
boolean a=true, b=false;
int i=0;
if(a^b) {
i++;
}
System.out.print(i++);
}
thank you!