This was probably asked somewhere but I couldn\'t find it. Could someone clarify why this code compiles and prints out 1?
1
long i = (byte) + (cha
Because both '+' and '-' are unary operators, and the casts are working on the operands of those unaries. The rest is math.