Difference between >>> and >>

前端 未结 7 1189
情歌与酒
情歌与酒 2020-11-22 07:13

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

7条回答
  •  深忆病人
    2020-11-22 08:03

    >>> will always put a 0 in the left most bit, while >> will put a 1 or a 0 depending on what the sign of it is.

提交回复
热议问题