Please follow the link below
https://coderanch.com/t/246350/java-programmer-SCJP/certification/Shift-Operation-negative-operand left operand << right operand
As been mentioned if the left operand is int then only 5 bits will be selected from the right operand,and if it is long then 6 bits are selected.
Then how about if it is short?
And also does the above applies to the three shift operators ( << ,>>, >>> )
[ September 24, 2004: Message edited by: Barry Gaunt ]