Java program to swap two numbers using bitwise operator

Let’s learn java program to swap two numbers using bitwise operator. Java program to swap two numbers using bitwise operator To swap two numbers using bitwise xor operator in java first user enters two numbers as input using nextInt() method of Scanner class. These two numbers are stored in two integer variables a and b.…

Read More Java program to swap two numbers using bitwise operator