Logo 
Search:

Java Articles

Submit Article
Home » Articles » Java » Homework HelpRSS Feeds

Program to show the use of operator (>>>) Shift Right, filling with zeros from the left

Posted By: Max Howard     Category: Java     Views: 2779

A Java Program to show the use of operator (>>>) Shift Right, filling with zeros from the left.

Code for Program to show the use of operator (>>>) Shift Right, filling with zeros from the left in Java

publicclass JAVA_013
 {

    publicstaticvoid main(String[] args)
    {
       int a=59085;  // 1110011011001101int b=(a>>>3); // 0001110011011001

       System.out.println("a = 1110011011001101 = " + a);
       System.out.println("b = a>>>3 = 0001110011011001 = " + b);
    }
 }
  
Share: 



Max Howard
Max Howard author of Program to show the use of operator (>>>) Shift Right, filling with zeros from the left is from Houston, United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!