Double Greater Than Sign (>>) in Java?

后端 未结 7 1122
南旧
南旧 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:52

    As others have noted, this is the right bit-shift. You'll see it in many of the so-called "C-style" languages.

    For massively detailed information about bit-shifting provided by your fellow StackOverflow users, check out a question I posted ages ago, which helped me finally get it: Absolute Beginner's Guide to Bit-Shifting. (The folks who posted there were kind enough to go into great depth on the subject, which I hope will help you as well.)

提交回复
热议问题