Showing posts with label local inner class. Show all posts
Showing posts with label local inner class. Show all posts

Tuesday, 21 January 2014

INTRODUCING NESTED AND INNER CLASSES

NESTED CLASSES IN JAVA

A class declared inside a class is known as nested class. We use nested classes to logically group classes in one place so that it can be more readable and maintainable code. Moreover, it can access all the members of outer class including private members.