---
title: "What is the difference between the >> and >>> operators?"  
description: "What is the difference between the >> and >>> operators?"  
author: "James Smith"  
published: 2011-07-15  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/1098/what-is-the-difference-between-the-and-operators  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is the difference between the >> and >>> operators?

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.

## Answers

### Answer by James Smith

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.


---

Original Source: https://www.mindstick.com/interview/1098/what-is-the-difference-between-the-and-operators

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
