Java is circularly shifted, that is, things that move to the right will go to the far left.
And C++ is a normal shift, and things that move too far are directly gone.
For example, 10 >& gt32 is still 10 in java.