why final variable is used in inner classes in java
<p>I am asking this , because final &amp; non-final have same scope , so why VARIABLE are added as 
final variable in java .. &amp; what is the affect of adding some variable as final , when it is only accessed under some scope .</p>

<pre><code>public void game()
{
    final String str = "a" ;
        //String str ="a" ;

    class hollow 
    {
        public void game ()
        {
            System.out.println(str);
        }
    }
}
</code></pre>
