Bitwise Operators

in Hindi - Bitwise Operators



not yet

Source Code :

RUNpublic class BitwiseOperators
{
public static void main(String args[])
{

int a=20,b=12,c=0;

c=a&b;
System.out.println("
 value of c "+c);     
     
c=a|b;
System.out.println("
 value of c is "+c);     

c=a^b;
System.out.println("
 value of c is "+c);

c=a<<b;
System.out.println("
 value of c is "+c);     
     
c=a>>b;
System.out.println("
 value of c is "+c);

c=~b;
System.out.println("
 value of c is "+c);

}
}