I have a question about the code below. The code is taken from my Programming Languages book.
byte x, y, z;
...
/* The values of y and z are coerced into int and int addition is performed */
/* The sum is converted into byte */
x = y + z;
My question is why Java does a coercion like that. Do you have any ideas?
Thanks in advance.