Spring Global Interview Question

How would you implement a code that replace the value of variable A by B without using a new variable?