Why Java doesn't support <<< operator

前端 未结 4 715
醉梦人生
醉梦人生 2021-02-05 09:22

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

4条回答
  •  旧时难觅i
    2021-02-05 09:36

    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.

    from Shifts in Java...

提交回复
热议问题