为什么 Java 不支持 <<<操作员 [英] Why Java doesn't support <<< operator

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

问题描述

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

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;操作员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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