What is the ">>" and ">>>" operator in java? -


this question has answer here:

hi wondering if me can find literally nothing online about. looking through code had following statement:

int mainint = 10>>> 5;

does know >> operator is?

for example 10 >> 1 equals 5 20 >>> equals 3

thanks

>> arithmetic right-shift operator.

>>> logical right-shift operator.

the first 1 preserves sign of operand. second inserts zeros @ significant bit positions, , applied on unsigned numbers.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -