#### Java / Operators

# What is the difference between the >> and >>> operators?

>> | >>> |

">>" is a signed right shift. | ">>>" is an unsigned right shift. |

If >> is applied on a negative number, the result will still be negative. | >>> ignores the sign of the number. If >>> is applied on a negative number,the result will be a positive number |

The >> fills from the left with the sign bit (0 or 1). | The >>> zero-fills from the left. |

More Related questions...