SPIRO THE TECH GURU

Back

what is Java Inner Class?

By Admin on

Java inner class or nested class is a class i.e. declared inside the class or interface.

We use inner classes to logically group classes and interfaces in one place so that it can be more readable and maintainable.

Additionally, it can access all the members of outer class including private data members and methods.




SPIRO Google Plus