How to Create an Object for Inner Classes in Java

Create an Object for Inner Classes in Java

In this example, We will show you about, How to Create an Object for Inner Classes in Java

Outer.java

InnerClassTest.java

Output

I am Outer Class
I am Inner Class
I am Inner1 Class
I am Inner2 Class
I am Inner3 Class