[Solved] Bitwise shift operation choice
The reason it works this way is because C and C++ used << for left shift and >> for right shift long before Java. Those languages have both signed and unsigned types, and for signed types the sign bit was propagated in the right-shift case. Java does not have unsigned types, so they kept the … Read more