A Java Program to show the use of operator (>>) Shift Right, propagating the sign bit from the left.
publicclass JAVA_012 { publicstaticvoid main(String[] args) { int a=26317; // 0110011011001101int b=(a>>3); // 0001110011011001 System.out.println("a = 0110011011001101 = " + a); System.out.println("b = a>>3 = 0000110011011001 = " + b); } }