Domanda di colloquio di Spring Global

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