title: Why Java Inner Classes require variables of outer class be final?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10338708/java-inner-class-and-local-variables">Java - inner class and local variables</a><br>
    <a href="https://stackoverflow.com/questions/13025907/how-does-marking-a-variable-as-final-allow-inner-classes-to-access-them">How does marking a variable as final allow inner classes to access them?</a>  </p>
  </blockquote>
  
  
  
  <p>Local Inner class can not only access the instance variables but local variables of the method (in which they are defined) as well, but the local varible has to be declared <code>final</code>.</p>
  
  <p>Why the local variables have to declared to be <code>final</code> in this case?</p>