235 << -8
In the case when u have -8 right side operand then u need to convert the no. into it's bit
pattern.
The bit pattern of -8 in int form is ----
11111111 11111111 11111111 111111000
conside the 5 low order bits (in the case of int 5 & 6 low order bits in the case of long )which are 11000 .
Now convert this to a no. which would be 24 .
So the shift expression will change to 235 << 24.
I hope this clears the concept.