Vidyalelo
Java Programming · Q74

Operators

Programming · Java Programming · question 74

Q74

What will be the output of the following Java code? class Output public static void main(String args[]) boolean a = true; boolean b = false; boolean c = a ^ b; System.out.println(!c);

A.
0
B.
1
C.
false
Answer
D.
true

Answer: Option C

Solution

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