Left bit shifting 255 (as a byte)

前端 未结 7 742
臣服心动
臣服心动 2020-12-01 18:41

Can anyone explain why the following doesn\'t compile?

byte b = 255 << 1

The error:

Constant value \'510\' can

7条回答
提交回复
热议问题