|
Which statements are true about the lines of output printed by the following program?
public class BoolOp {
static void op(boolean a, boolean b) {
boolean c = a != b;
boolean d = a ^ b;
boolean e = c == d;
System.out.println(e);
}
public static void main(String[] args) {
op(false, false);
op(true, false);
op(false, true);
op(true, true);
}
}
Select the three correct answers.
All lines printed are the same. At least one line contains false. At least one line contains true. The first line contains false. The last line contains true.
|