3 ms·
The Java Language Specification indeed states that the shift amount should be ANDed with 31 or 63, depending on a type of the left-hand operand. I guess Notch d
by lifthrasiir 15y ago
The Java Language Specification indeed states that the shift amount should be ANDed with 31 or 63, depending on a type of the left-hand operand. I guess Notch did not intend this behavior, however.
http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.19 http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html...