title: can we make class that contain main method anonymous
body: <p>Below is example of anonymous inner class in this we make anonymous class with A   </p>
  
  <pre><code>class A
  {
      void one()
      {
          System.out.println("hello");
      }
  }
  
  class One
  {
      public static void main(String args[])
      {
          new A()
          {
              void five()
              {
                  one();
              }
          }.five();
      }
  }
  </code></pre>
  
  <p>My question is can we make class <code>One</code> as anonymous (not its inner anonymous class) i.e. simply class that contain <b>public static void main</b> method. </p>