A

Admin • 828.70K Points
Coach

Q. Which of these statements are incorrect?

  • (A) The right shift operator, >>, shifts all of the bits in a value to the right specified number of times
  • (B) The right shift operator automatically fills the higher order bits with 0
  • (C) The left shift operator, <<, shifts all of the bits in a value to the left specified number of times
  • (D) The left shift operator can be used as an alternative to multiplying by 2
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
The right shift operator automatically fills the higher order bit with its previous contents each time a shift occurs. This also preserves the sign of the value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.