title: What is the difference between String[] and String... in Java?
body: <p>How should I declare <code>main()</code> method in Java?</p>
  
  <p>Like this:</p>
  
  <pre><code>public static void main(String[] args)
  {
      System.out.println("foo");
  }
  </code></pre>
  
  <p>Or like this:</p>
  
  <pre><code>public static void main(String... args)
  {
      System.out.println("bar");
  }
  </code></pre>
  
  <p>What's actually the difference between <code>String[]</code> and <code>String...</code> if any?</p>