>>" Operator" name="description"> >>" Operator" name="keywords">
In this section, you will learn how to use unsigned right shift ">>>"operator in Java. The Java programming language has operators that perform bitwise operations. In the example below we have shown the usage of unsigned right shift ">>>"operator.
Description of code:
The unsigned right shift ">>>"operator shifts a zero into the leftmost position however the leftmost position after ">>" depends on sign extension. In the program code given below, this operator has shifted the bits to the leftmost position that is why we have got 19 as an output.
Here is the code of program:
Output of the program:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: September 8, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles