title: Unable to declare static variable inside of static method
body: <pre><code>class Foo {
      public Foo() { }
  }
  
  class Bar {
      static Foo foo = new Foo(); // This is legal...
  
      public static void main(String[] args) { 
          static int a = 0; // ... But why this is not?
      }
  }
  </code></pre>
  
  <p>Why can't we declare a static variable inside of a static function?</p>