What i know is:
In java, all byte and short data types are automatically promoted to int during a calculation. And, if you are casting a large data type like int to a byte then the int is reduced modulo the range of the short data type i.e byte (the range of byte is 256).

The program below has no compilation error. The output is incorrect for the first print statement..plea se explain why?

[CODE=Java]class TestByte...