Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes needs explantion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "needs explantion" Watch "needs explantion" New topic

needs explantion

Venkat Ramsimha
Ranch Hand

Joined: Dec 28, 2004
Posts: 127
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.

with respective to the above program can anybody provide any sample program?

I agree. Here's the link:
subject: needs explantion