I know that >>
(two times greater than) is shifting , but what does >>>
do exactly ?
System.out.println(16>>>2); // OK
System.out.println(8>>>2); // OK
System.out.println(8>>>2); // OK
System.out.println(8<<<2); // not OK
>>>
Shift right zero fill operator.
The left operands value is moved right by the number of bits specified by the right operand and shifted values are filled up with zeros.
>>>
is valid operator <<<
in not valid operator in java if try to use this it give
Syntax error on token "<", delete this token
>>>
:Shift right zero fill operator. The left operands value is moved right by the number of bits specified by the right operand and shifted values are filled up with zeros.
More information:
why is 1>>32 == 1?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With