Java provides the two types of inner classes are as follows:
Read moreHow do you access class members in Java?
To access the members of a class from other class.
Read moreWhat are the members of class?
A class’s members include all the members declared in the class, along with all members (except constructors and finalizers) declared in all classes in its inheritance hierarchy . Private members in base classes are inherited but are not accessible from derived classes. Fields are variables declared at class scope.
Read more