posted 16 years ago
Inner classes in code blocks, such as method body, constructor or initialization block is known as Local Inner Classes.
As local inner classes are completely inaccessible outside the method.
If you are defining any local variable you can not access those variables outside the method.
Then what is the use of Local Inner classes?