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


>> 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.

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 30-Jul-2019

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements