Logo 
Search:

Java Articles

Submit Article
Home » Articles » Java » Homework HelpRSS Feeds

Program to show the use of Bitwise Operator (&) AND

Posted By: Kiswar Iqbal     Category: Java     Views: 6081

A Java Program to show the use of Bitwise Operator (&) AND.

Code for Program to show the use of Bitwise Operator (&) AND in Java

publicclass JAVA_007
 {

    publicstaticvoid main(String[] args)
    {
       int a=26317;  // 0110011011001101int b=15;     // 0000000000001111int c=(a&b);  // 0000000000001101

       System.out.println("a = 0110011011001101 = " + a);
       System.out.println("b = 0000000000001111 = " + b);
       System.out.println("c = a&b = 0000000000001101 = " + c);
    }
 }
  
Share: 


Didn't find what you were looking for? Find more on Program to show the use of Bitwise Operator (&) AND Or get search suggestion and latest updates.

Kiswar Iqbal
Kiswar Iqbal author of Program to show the use of Bitwise Operator (&) AND is from Karachi, Pakistan.
 
View All Articles

 

Other Interesting Articles in Java:


 
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!