Double Greater Than Sign (>>) in Java?

后端 未结 7 1101
南旧
南旧 2020-12-04 13:07

What does the >> sign mean in Java? I had never seen it used before but came across it today. I tried searching for it on Google, but didn\'t find anythin

7条回答
  •  醉梦人生
    2020-12-04 13:55

    It shifts the bits...

    heres some info on java operators

    For example

    101  = 5
    Shifting out the right "1"
    10 = 2
    Shifting the other way...
    1010 = 10
    

提交回复
热议问题