unSign shift to the right : Shifting « Language Basics « Java






unSign shift to the right

 
public class Main {
  public static void main(String[] argv) throws Exception {
    byte c = -10;

    System.out.println(c >>> 1);

  }
}

   
  








Related examples in the same category

1.Demonstrates short-circuiting behavior with logical operatorsDemonstrates short-circuiting behavior with logical operators
2.Show some effects of shifting on ints and longsShow some effects of shifting on ints and longs
3.Right shift
4.Shift to the left three
5.Sign shift to the right
6.Test of unsigned right shift.Test of unsigned right shift.