my question is, let say right shift x to 31 bits, will the bit shift after the rightmost bit and then will continue the shift from leftmost ?
You are describing a right circular shift. Java does not do this. Bits shifted past the end of a word go into the bit bucket, where they will be reused the next time you reboot your computer.
Originally posted by Alvin chew: can you please clarify further details? what do you means bit bucket ? and how could it be reuse during enxt time reboot the computer ?
Alvin,
A "bit bucket" is slang for thrown away. A.K.A. "/dev/null", "round file", "trash can", etc...
Mike,
Maybe you should add a ... You never know when jokes may be taken seriously.