请问>>>与>>有何区别?

xiaobi_liang 2002-02-19 09:01:20
...全文
36 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
dope 2002-02-19
  • 打赏
  • 举报
回复
The signed right shift >> uses sign extension: if the value is positive, zeroes are inserted at the higher-order bits; if the value is negative, ones are inserted at the higher-order bits

Java has also added the unsigned right shift >>>, which uses zero extension: regardless of the sign, zeroes are inserted at the higher-order bits
zhuzhichao 2002-02-19
  • 打赏
  • 举报
回复
不帶符號右移
和帶符號右移

RedGuest 2002-02-19
  • 打赏
  • 举报
回复
试一下就知道了
>>>全部补0, >>补符号位
不知道是不是
skyyoung 2002-02-19
  • 打赏
  • 举报
回复
看看java 语言的位运算章节
MrYoucheng 2002-02-19
  • 打赏
  • 举报
回复
>>>是右移当不 改变符号
>>会改变符号

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧