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
πŸ’¬ Discuss
βœ… Correct Answer: (D) 50

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
329
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rajeev Malhotra
Publisher
πŸ“ˆ
89%
Success Rate