, asked
Views : 5

What is the difference between >> and >>> operators in Java?

What is the difference between >> and >>> operators in Java?

1 Answer
Samual Sam

>> Binary Right Shift

The left operand value is moved right by the number of bits specified by the right operand.

>>> Shift right zero fill

The left operand value is moved right by the number of bits specified by the right operand and shifted values are filled up with zeros.

Advertisements
Related Questions