title: equals vs Arrays.equals in Java
body: <p>When comparing arrays in Java, are there any differences between the following 2 statements?</p>
  
  <pre><code>Object[] array1, array2;
  array1.equals(array2);
  Arrays.equals(array1, array2);
  </code></pre>
  
  <p>And if so, what are they?</p>