It is given in the javaranch roundup game,
Assume that the bit pattern of the byte x is 10110001.What will be the sign of x after x>>2?
It is given negative?How come??
I think before performing the shift operation, byte will be converted to int and then this operation will be performed.So I think the answer should be positive.And one more thing, I tried to compile it but it didn't compile because the value represented by the bit pattern above will not fit into a byte range... Help me.....