title: Does using final for variables in Java improve garbage collection?
body: <p>Today my colleagues and me have a discussion about the usage of the <code>final</code> keyword in Java to improve the garbage collection.</p>
  
  <p>For example, if you write a method like:</p>
  
  <pre><code>public Double doCalc(final Double value)
  {
     final Double maxWeight = 1000.0;
     final Double totalWeight = maxWeight * value;
     return totalWeight;  
  }
  </code></pre>
  
  <p>Declaring the variables in the method <code>final</code> would help the garbage collection to clean up the memory from the unused variables in the method after the method exits.</p>
  
  <p>Is this true? </p>