why does 2^0 return 2 in java
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1991380/what-does-the-operator-do-in-java">What does the ^ operator do in Java?</a><br>
  <a href="http://stackoverflow.com/questions/7101515/the-power-in-java">The power ^ in Java?</a>  </p>
</blockquote>



<p>I am sorry if this is a duplicate, but i didn´t found anything in SO.</p>

<p>So can someone explaint me why </p>

<pre><code>     System.out.println((2^0));
</code></pre>

<p>this does return <code>2</code>?</p>

<p>i was expecting a <code>1</code>.</p>
