Pg 126 : 5.1.5 Numeric promotion and casting

Date: 2019-10-06
Status: Fixed
Fixedinbuild:
22
Old Text:
byte b = 1; short s = -b; System.out.println(b);
New Text:
byte b = 1; short s = -b; System.out.println(s);
Comments:
It should print s instead of b.
Reportedby:
Fedor Lvovich Dobrotvorskii

 Back