0

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 ?

Punit Patel
  • 901
  • 1
  • 12
  • 25

0 Answers0