title: Can we overload the main() method in Java?
body: <p>The following code simply prints the word "hi" when run.</p>
  
  <pre><code>import java.util.*;
  import java.io.*;
  
  class poly
  {
      public static void main(String c)
      {
          System.out.println("enter a char");
          InputStreamReader ir=new InputStreamReader(System.in);
          BufferedReader br =new BufferedReader(ir);
          //char l= br.readLine();
          System.out.println("this is "+c);
      }
  
      public static void main(String args[]) throws Exception
      {
          System.out.println("hi");
      }
  }
  </code></pre>
  
  <p>Is there a way to overload the <code>main()</code> method?</p>