title: In how many different ways can we declare a main method in java?
body: <p>I how many different ways can we declare a main method in java?</p>
  
  <pre><code>class A{
      public static void main(String args[]){
         System.out.println("hi");
      }
  }
  </code></pre>
  
  <p>Now I want different ways to create a main method. Could you explain me? </p>