Vidyalelo
Java Programming · Q59

Operators

Programming · Java Programming · question 59

Q59

What will be the output of the following Java program? class rightshift_operator public static void main(String args[]) int x; x = 10; x = x >> 1; System.out.println(x);

A.
10
B.
5
Answer
C.
2
D.
20

Answer: Option B

Solution

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