title: Is the Object stored in each position of the array in Arrays.fill(Object[], Object) the same object?
body: <p>I am doing something where I have code like this</p>
  
  <pre><code>Object[] array = new Object[10];
  Arrays.fill(array, new Object());
  </code></pre>
  
  <p>my question is, will <code>array[0] == array[1]</code> be true, or just <code>array[0].equals(array[1])</code>? Or in other words, are all of the values in the array the same exact object or equivalent objects?</p>