Inner Class :-
Inner class is a part of nested class. Non-static nested classes are known as inner classes.
Types of Inner class (non-static nested class)
- Member inner class – A class created within class and outside method.
- Annomynous inner class – A class created for implementing interface or extending class. Its name is decided by the java compiler.
- Local inner class – A class created within method.