title: String[] names = String[0]; is this valid?
body: <p>I tested on <a href="https://quizlet.com/10055992/java-quiz-5-arrays-flash-cards/" rel="nofollow">this website</a>:</p>
  
  <pre><code>String[] names =new String[0]; 
  </code></pre>
  
  <p>The result says this is valid, but when I test it on IDE, I get an error. Someone tell me why?</p>