Hi Gupta thanks for your reply.Can you explain it me clearly please
posted 13 years ago
You are creating the anonamyous class which is the local inner class (local because it is inside method, inner because inside another class) and local inner class can access only final variables of the method in which they are declared.
Now its clear??
If its not than please tell me, whichpart you not getting?