java.lang.Class and equality
<p>According the javadoc of <code>Class</code></p>

<blockquote>
  <p>Every array also belongs to a class that is reflected as a Class
  object that is shared by all arrays with the same element type and
  number of dimensions.</p>
</blockquote>

<p>But when I run the below</p>

<pre><code>int[] intArray = { 1, 2 };
out.println(intArray.getClass().hashCode());
int[] int2Array = { 1, 2 };
out.println(int2Array.getClass().hashCode());

out.println(intArray.equals(int2Array));
</code></pre>

<p>I get the below output</p>

<pre><code>1641745
1641745
false
</code></pre>

<p>I am wondering why the equals is returning false even though both the arrays are of <code>int</code> type and have the same dimensions.</p>
