A

Admin • 830.13K Points
Coach

Q. What is the output of this program?

Code:
public class RightShift_Operator
{
public static void main(String args[])
{
int a;
a = 100;
a = a >> 1;
System.out.println(a);
}
}
  • (A) 10
  • (B) 20
  • (C) 30
  • (D) 50
  • Correct Answer - Option(D)
  • Views: 19
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.