πŸ“Š JAVA
Q. What will be the output?
Code:
System.out.println(10 >> 1);
  • (A) 5
  • (B) 10
  • (C) 20
  • (D) 2
πŸ’¬ Discuss
βœ… Correct Answer: (A) 5

Explanation: Right shift divides by 2, so 10>>1 = 5.

Explanation by: Roshan
Right shift divides by 2, so 10>>1 = 5.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
10
Total Visits
πŸ“½οΈ
2 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
86%
Success Rate