title: What is the memory overhead of a Java method?
body: <p>What is the memory overhead of a function in a class?</p>
  
  <p>For example,</p>
  
  <pre><code>Class A
  {
   int a
  }
  
  Class B
  {
   int a
   int foo(int);
  }
  </code></pre>
  
  <p>So 100 instances of class A should be 80 bytes. What about 100 instances of class B?</p>