This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
A method-local inner class can be instantiated only within the method where the inner class is defined. In other words, no other code running in any other method�inside or outside the outer class�can ever instantiate the method-local inner class. Like regular inner class objects, the method-local inner class object shares a special relationship with the enclosing (outer) class object, and can access its private (or any other) members.
HI ALL, with respective to the above program can anybody provide any sample program?