| Types of inner classes in Java Programming language?
There are 3 main types in inner classes in Java.
(1)Member Inner Class:-Member Inner class specifies a class within the class by using outside method.
(2)Anonymous Inner Class:-Here we use this for extending the class or specifying the implementation of interface.
(3)Local Inner Class:-Here we use this to create a class within the method. | | |