where the memory allocated when we declare static?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3849634/static-allocation-in-java-heap-stack-and-permanent-generation">static allocation in java - heap, stack and permanent generation</a>  </p>
</blockquote>



<p>its a small confusion...defining static to class, methods and variables.In this three cases where thus the memory allocated.  ? My boss is familiar with C,he says only variables are in heap memory and rest (static classes and static methods) will remain in main memory. is that ture? any explanation.?</p>

<p>one more
in android using static class and static methods is a best practice ?</p>
