inner classes in java

in this post we will discuss about the inner classes in java. so what is inner class and when we should go for inner classes. Sometimes when we declare a class inside another class, such type of class is called inner class. class Car { System.out.println(“inside car class”); class Engine{ System.out.println(“inside engine inner class”); } … Read more