title: Do the elements of a one-dimensional array have to be of primitive data type in Java?
body: <p><strong>My computer programming teacher claims that in Java:</strong></p>
  
  <blockquote>
    <p>The elements in a one-dimensional array must be of primitive data type</p>
  </blockquote>
  
  <p><strong>I've done hours of research but I can't find <em>any</em> statements to back up this claim.</strong></p>
  
  <p>I know that I can make arrays of objects in Java. <em>Even the CLI arguments are passed into the program via a <code>String</code> array.</em></p>
  
  <p>Her justification is that <code>String[]</code> can be viewed as a multi-dimensional array of characters. I can understand this but I cannot see how this could apply to all objects.</p>
  
  <p>She goes on to say that one-dimensional arrays cannot hold objects because arrays that hold objects become multi-dimensional.</p>
  
  <p>I cannot understand how arrays of <code>Object</code>, <code>Integer</code> and <code>Scanner</code> can be multidimensional.</p>
  
  <p><strong>I'm very confused right now, am I missing anything?</strong></p>