A Java Program to show the use of Bitwise Operator (&) AND.
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); } }