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?

public class Bool0p { static void op (boolean a, boolean b) {

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

1 Expert Approved Answer
Step: 1 Unlock

a c and e The and operators when used on boolean operands wil... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!