[Solved] Meaning of “>>>” in Java [duplicate]

[ad_1]

>>>= is similar to += but with a unsigned right shift (>>>) operation.

int foo = Integer.parseInt("1000", 2);
//shift 3 times to the right : "1000" becomes "0001" = "1"
foo>>>=3;
System.out.print(Integer.toBinaryString(foo));

output :

1

[ad_2]

solved Meaning of “>>>” in Java [duplicate]