The scope of this variables
<p>I have this code :</p>

<pre><code>public Thread createThread(){
     final int innerVar = 100;   //this Life cycle ?
     return new Thread(){
          public void run(){
             System.out.println(innerVar);
          }
     };
}
</code></pre>

<p>and I want to know what is the Life cycle of <code>innerVar</code>?</p>

<p>The local variable of <code>innerVar</code> whether still in stack or in heap?</p>