SPIRO THE TECH GURU

Back

what is Inner Class?

By Admin on

                                                                     Inner Class in Java



Java inner class or nested class is a class, 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.

Syntax:

class Java_Outer_class{  

 //code  

 class Java_Inner_class{  

  //code  

 }  

}  

SPIRO Google Plus