Since I'm new to Java world. I already know the stack and heap, but I don't know much about "memory data section" mentioned in Here. So if you can shade some light on this or give me references to review.
Kathy and Bert SCJP page 682
"You learned why method-local inner classes cannot
use non-final local variables declared within the method—the inner class instance
may outlive the stack frame, so the local variable might vanish while the inner class
object is still alive"
As far as my understanding final vars cannot be changed but it will also vanish when the method completes. then how method-local inner classes can use them?!!