Could any one kindly explain about all shift(<<, >>, >>>) operators with examples or let me know the site where i can find more examples on shift operators. I am preparing for
SCJP.
After reading about shift operators i am not able to answer this question.
Q.which of the following expressions results in a positive value in x?
A.int x = -1; x = x >>>5;
B.int x = -1; x = x >>> 32;
C.byte x = -1; x = x >>> 5;
D.int x = -1; x = x >> 5;
Thanks.