title: String array initialization as constructor parameter
body: <p>In Java, it is completely legal to initialize a String array in the following way:</p>
  
  <pre><code>String[] s = {"FOO", "BAR"};
  </code></pre>
  
  <p>However, when trying to instantiate a class that takes a String array as a parameter, the following piece of code is NOT allowed:</p>
  
  <pre><code>Test t = new Test({"test"});
  </code></pre>
  
  <p>But this works again:</p>
  
  <pre><code>Test t = new Test(new String[] {"test"});
  </code></pre>
  
  <p>Can someone explain why this is?</p>