当前位置: 技术问答>java相关
帮忙翻译一句话!
来源: 互联网 发布时间:2015-03-15
本文导语: Java has four signed integral primitive data types. These are byte, short, int, and long; {all four types display the behavior of two’s-complement representation.} 请译一下{}中的一句话,谢谢 | 四种类型...
Java has four signed integral primitive data types. These are byte, short, int, and long; {all four types display the behavior of two’s-complement representation.}
请译一下{}中的一句话,谢谢
请译一下{}中的一句话,谢谢
|
四种类型全部以二进制补码的表示方式进行运算。
|
Two's complement is a operation of binary number.
for example;
byte i = 2;
i-->00000010;
i's one's complement --> 11111101
i's two's complement --> 11111110
i = -2; // after two's complement operation
Please check some computer organization book.
for example;
byte i = 2;
i-->00000010;
i's one's complement --> 11111101
i's two's complement --> 11111110
i = -2; // after two's complement operation
Please check some computer organization book.