Q. What will be the output of the following Java program?
Code:class rightshift_operator
{
public static void main(String args[])
{
int x;
x = 10;
x = x >> 1;
System.out.println(x);
}
}
β
Correct Answer: (B)
5