title: Where are static methods and static variables stored in Java?
body: <p>For example:</p>
  
  <pre><code>class A {
      static int i=0;
      static int j;
  
     static void method() {
         // static k=0; can't use static for local variables only final is permitted
         // static int L;
      }
  }
  </code></pre>
  
  <p>Where will these variables be stored in Java, in heap or in stack memory? How are they stored?</p>