Consider following Code
boolean a = false;
boolean b = false;
boolean c = true;
if( a && b | c) {
System.out.println("Bitwise |");
}
if( a && b || c) {
System.out.println("Short Circuit ||" );
}
Above Code gives Result : Short Circuit ||
I don't understand how does java evaluate above condition ?