title: Why can't a Java class be declared as static?
body: <p>I am trying to find why the class cant be created as a static? Like:</p>
  
  <pre><code>public static class Qwert{
  
      public static void main(String args[]){
  
          int x = 12;
          while(x&lt;12){
              x--;
          }
          System.out.println(" the X value is : "+ x);
      }
  }
  </code></pre>