java interface in interface

Nested Interfaces

Like a class you have seen, an interface can be nested within a) a class or b) another interface. That is, an interface can be declared inside a class body or interface body. That is, an interface can declare within it, classes, interfaces, instance variables and abstract methods. Let us…