为什么Java不支持<<< oprerator [英] Why Java doesn't support <<< oprerator

查看:132
本文介绍了为什么Java不支持<<< oprerator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么Java不支持<<< (无符号左移)运算符,但支持>> > (无符号右移)运算符?

Why doesn't Java support the <<< (unsigned left shift) operator, but does support the >>> (unsigned right shift) operator?

推荐答案


Java添加运算符>>>执行逻辑右移,但
因为逻辑和算术左移操作是
相同
,没有<<< ; Java中的运算符。

Java adds the operator ">>>" to perform logical right shifts, but because the logical and arithmetic left-shift operations are identical, there is no "<<<" operator in Java.

来自 Java中的转变......

这篇关于为什么Java不支持&lt;&lt;&lt; oprerator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆