title: java :Why the Local variable should be declared final
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/266806/is-there-any-performance-reason-to-declare-method-parameters-final-in-java">Is there any performance reason to declare method parameters final in Java?</a><br>
    <a href="https://stackoverflow.com/questions/316352/why-would-one-mark-local-variables-and-method-parameters-as-final-in-java">Why would one mark local variables and method parameters as &ldquo;final&rdquo; in Java?</a>  </p>
  </blockquote>
  
  
  
  <p>I am using PMD to see the code violations.</p>
  
  <p>Inside a webService Method, I have this below code </p>
  
  <pre><code>public ServiceRequest getData()
  {
  Status status = new Status();
  // code
  }
  </code></pre>
  
  <p>What PMD is suggesting me is that, this local variable status could be declared as final.</p>
  
  <p>My question is, making it final would result in any performance improvements or if not what benefits the code could get?</p>