Search:

Type: Posts; User: literallyjer

Search: Search took 0.10 seconds.

  1. Re: Fitting a large primitive into a small reference variable

    Yes. As Json pointed out, the range for a byte is -128 to 127.
  2. Re: Fitting a large primitive into a small reference variable

    That is because a byte is 8 bits while a int is 32 bits. Also, Java primitives are signed, which means the largest number a byte can hold is 127. So, stuffing the number 550 into a byte overflows...
Results 1 to 2 of 2