## swap two variables in java in single line

Let’s learn to swap two variables in java in single line. swap two variables in java in single line In single expression we can swap two variables or two integers. To swap two variables in one line we are using bitwise xor operator. Bitwise xor operator of two numbers returns 1 if both bits in…

Read More swap two variables in java in single line