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
Unary operators and casting :)
+1 is legal
(byte) + 1 is casting +1 to a byte.
Sneaky! Made me think.