Java: Operators >> and >>>

inicial › Forums › Java › Java: Operators >> and >>>

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2292606
    matheusdba
    Keymaster

    What is the difference between operators >> and >>>?

    #2292607
    matheusdba
    Keymaster

    The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.