Shift Operators- Learn Java Part_13 |EduTech|



Shift Operators- Learn Java

The Java programming language also provides operators that perform bit wise and bit shift operations on integral types.

Operator Shifting
Bitwise Left Shift Operator (<<)
Left shift operator shifts the bits of the quantity closer to left a particular range of positions. The image for this operator is <<. When you write x<>, examine as double increased than. When you write x>>n, the that means is to shift the bits x in the direction of the proper n designated positions.

>> shifts the bits in the direction of the proper and additionally maintain the signal bit, which is the leftmost bit. The leftmost bit represents the signal of the number. The signal bit zero represents a superb number, and 1 represents a poor number. So after performing >> on a effective number, we get a fine price in the end result also. When we function >> on a bad number, once more we get a bad value.

Post a Comment

Thanks for touching with us.

Copyright © EduTech. Designed by | WebMyDesign
Edutech