Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8382939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:02:45+00:00 2026-06-09T17:02:45+00:00

I found this java question on the internet and had some questions about it.

  • 0

I found this java question on the internet and had some questions about it.

Which statements are accurate:

  • a) >> performs signed shift while >>> performs an unsigned shift.
  • b) >>> performs a signed shift while >> performs an unsigned shift.
  • c) << performs a signed shift while <<< performs an unsigned shift.
  • d) <<< performs a signed shift while << performs an unsigned shift.

I’m a little unsure what a signed shift is, does it mean that it retains the sign of the binary number regardless of what happens in the shift itself (which would make the most sense to me) or does it mean that the MSB does not change unless it is overwritten in the shift operation itself.

so

  • a) true: regardless of how many shifts using >> you make, the MSB is always retained as its original therefore signed? Whereas >>> will always overwrite the MSB with a 0, and therefore unsigned ?
  • b) false, because of above explanation
  • c) not sure, because the first bit could be overwritten with the << shift operation and therefore doesn’t retain its sign?
  • d) not sure again.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:02:46+00:00Added an answer on June 9, 2026 at 5:02 pm

    “>>” performs a signed shift which fills in the new bits with whatever the leftmost bit is. The leftmost bit determines if the number is negative or positive. 0 for positive and 1 for negative. For example,

    >> 1
    10111100 becomes 11011110
    the leftmost bit is a 1, so the new bits after the shift become ones
    
    >> 1
    01110011 becomes 00111001 since the leftmost bit is a 0
    

    “>>>” performs an unsigned shift which means the new bits are always filled with zeroes after the shift. For example,

    >>> 1
    10111100 becomes 01011110
    the new bits are filled in as zeroes no matter what the leftmost bit is
    
    
    enter code here
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I found so far are some online resources like this: http://www.torsten-horn.de/techdocs/java-hibernate.htm (GER) https://www.hibernate.org/5.html
I wrote some simple apps in Android using Java. But later I found this:
I have seen this question floating around the internet, but I haven't found a
I found this question, which appears to describe the problem I am currently having,
This is a Java syntax question, but just for some background. Using android, I
This is a beginner question for java graphics using the awt package. I found
I found this Is Sun Java really necessary for using Android SDK on Ubuntu
Here I found this code: import java.awt.*; import javax.swing.*; public class FunWithPanels extends JFrame
I found this older article how-to-monitor-the-computers-cpu-memory-and-disk-usage-in-java and wated to ask, if there is something
In Matters Computational I found this interesting linear search implementation (it's actually my Java

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.