|
In other words:
When you write this Java statement: short x; x = 3; Java compiler will generate machine instruction to: Store the 2's complement number 0000000000000011 in variable x |
In other words:
When you write this Java statement: x = x + 2; The variable x contains a binary number and the number 2 is translated into the binary number 0000000000000010. And the Java compiler will generate machine instruction to: Add 0000000000000010 to the binary number in x // using binary addition !! (And store the resulting binary number back in the variable x) |