java interface classes

Class inside Interface

Note: It is advised to read the basics and types of inner classes before proceeding further. The use of inner class in interface is, we can write default implementation for interface methods. In other words we can use interface as abstract class. Another use of creating a class inside an…