Vidyalelo
Java Programming · Q91

Operators

Programming · Java Programming · question 91

Q91

What will be the output of the following Java code? class bool_operator public static void main(String args[]) boolean a = true; boolean b = !true; boolean c = a | b; boolean d = a & b; boolean e = d ? b : c; System.out.println(d + " " + e);

A.
false false
B.
true ture
C.
true false
D.
false true
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board