0

In the code below which is part of a tutorial found, i thought that ater running it the expected result of byte0 would be the same value as of int, 190:

int i = 190;
byte byte0 = (byte)((i & 0x000000FF));

Though, the result given by Netbeans is -66. Any ideas why?

J.mp
  • 81
  • 5

0 Answers0