Vidyalelo
Java Programming · Q66

Operators

Programming · Java Programming · question 66

Q66

What will be the output of the following Java program? class Output public static void main(String args[]) int a = 1; int b = 2; int c = 3; a |= 4; b >>= 1; c <<= 1; a ^= c; System.out.println(a + " " + b + " " + c);

A.
3 1 6
Answer
B.
2 2 3
C.
2 3 4
D.
3 3 6

Answer: Option A

Solution

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