## Swap two variables in java in single line

Let’s learn 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 its…

Read More Swap two variables in java in single line