title: Java: Memory usage of the final keyword?
body: <p>When you declare a <code>final</code> variable (constant) in a class, for example:</p>
  
  <p><code>private static final int MyVar = 255;</code></p>
  
  <p>How much memory will this require if I have 100,000 instances of the class which declared this?</p>
  
  <p>Will it link the variable to the class and thus have 1*MyVar memory usage (disregarding internal pointers), or will it link to the instance of this variable and create 100,000*MyVar copies of this variable?</p>
  
  <p><strong>Unbelievably fast response! The consensus seems to be that if a variable is both static and final then it will require 1*MyVar. Thanks all!</strong></p>