Examveda
Examveda

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

C. 2

D. 20

Answer: Option B


This Question Belongs to Java Program >> Operators

Join The Discussion

Related Questions on Operators