interface outer{
void display();
interface inner{
void nestedmethod();
}
}
class Main implements outer.inner{
public void display(){
System.out.println("This is a nested interface example");
}
public static void main(String[] args){
Main obj=new Main();
obj.display();
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: