Regarding swapping of variables in java
<p>I am a new bie to the world of java , In an interview today I was being asked to o swap two numbers without using temp or third variable, now I was confused since I do not know how to proceed for this problem, when I was searching on net i came up with this following url 
<a href="http://javarevisited.blogspot.in/2013/02/swap-two-numbers-without-third-temp-variable-java-program-example-tutorial.html" rel="nofollow">http://javarevisited.blogspot.in/2013/02/swap-two-numbers-without-third-temp-variable-java-program-example-tutorial.html</a></p>

<p>Now please advise as the three approaches suggested in this article , still is there any better approach, please advise and specially the xor one in detail</p>

<p>my two variables having the value..</p>

<pre><code>int g =53;
int d= 65;
</code></pre>
