Hello All,
I came across the piece of code below and could not understand the output for line 15:
The compiler compiles and outputs 212.
2 - x is boxed to Integer and then widened to Object.
y is widened to Object.
1 - x is boxed to Integer and then widened to Object.
2 - ???
Can someone please explain what happens for the last 2 to be output instead of 3?