Question: Which statements are true about the lines of output printed by the following program? Select the three correct answers. (a) All lines printed are the
Which statements are true about the lines of output printed by the following program?

Select the three correct answers.
(a) All lines printed are the same.
(b) At least one line contains false.
(c) At least one line contains true.
(d) The first line contains false.
(e) The last line contains true.
public class Bool0p { 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);
Step by Step Solution
3.44 Rating (176 Votes )
There are 3 Steps involved in it
a c and e The and operators when used on boolean operands wil... View full answer
Get step-by-step solutions from verified subject matter experts
