title: Why Java Only Allows String[] args as Main method Argument?
body: <p>Why Java only allows the main method to take argument of the form <code>String[] args</code>? i.e an array of strings</p>
  
  <pre><code>public static void main(String[] args)
  </code></pre>
  
  <p>And why doesn't Java allow an array of int or double like</p>
  
  <pre><code>public static void main(int[] args)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>public static void main(double[] args
  </code></pre>
  
  <p>And why doesn't it allow a single string or int or float rather than array of string? Something like:</p>
  
  <pre><code>public static void main(String args)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>public static void main(int i)
  </code></pre>