A Java Program to show the use of Bitwise Operator (~) Complement.
publicclass JAVA_010 { publicstaticvoid main(String[] args) { int a=26317; // 0110011011001101int b=(~a); // 1001100100110010 System.out.println("a = 0110011011001101 = " + a); System.out.println("b = ~a = 1001100100110010 = " + b); } }