## Swap two variables in java in single line

Let’s learn how do you 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…

Read More Swap two variables in java in single line