R

Rajeev Malhotra • 3.97K Points
Extraordinary

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: 219
  • Filed under category JAVA

Explanation by: Rajeev Malhotra
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.


Question analytics