I cannot understand to why this syntax does not generate any kind of compile time or run time errors ?
int i=2;
switch(i ^ 3){ ---- > this part
case 8: System.out.print("Eight"); break;
default: System.out.print("Default");
}
It prints Default, so what does this ( i ^ 3 ) do in the switch condition ?