Java Inner Class

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)

  1. Member inner class – A class created within class and outside method.
  2. Annomynous inner class – A class created for implementing interface or extending class. Its name is decided by the java compiler.
  3. Local inner class – A class created within method.