aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Introduction to Java
  • What is the value of the statement 23>>2 in Java?
Multiple choice

What is the value of the statement 23>>2 in Java?

  1. 5

  2. 6

  3. 7

  4. 8

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The >> is the right shift operator. 23>>2 =10111(binary value of 23) is right shift twice. =101 ( 11 is dropped) =5

Keep practicing — related questions

  • What will be the value of y in the following program fragment? int y = 10; If(y++ >9 && y++! = 10 && y++>10)
  • System.out.println(4 | 3);
  • What is the value of 'number' after the following code fragment execution? int number = 0; int number2 = 12...
  • What is the result of the following operation? System.out.println(4 | 3);
  • What is the result of the following operation? System.out.println(4 | 3);
  • What is the result of the following operation? System.out.println(4 | 3);
  • What is the result of the following operation? System.out.println(4 | 3);
  • What is the result of the following operation? System.out.println(4 | 3);
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy