What does the >>> operator do in Java?

  • Bitwise OR operation
  • Left-shifts with sign extension
  • Logical AND operation
  • Right-shifts with zero fill
The >>> operator in Java is used for a logical right shift with zero fill. It shifts the bits of a binary number to the right and fills the leftmost bits with zeros. This operator is often used with bitwise operations to manipulate binary data. The other options do not accurately describe the >>> operator.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *