This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi Gupta thanks for your reply.Can you explain it me clearly please
Joined: Jul 23, 2007
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?