// A simple Java program to demonstrate multiple // inheritance through default methods. interfaceTestInterface1 { // default method defaultvoidshow() { System.out.println("Default TestInterface1"); } } interfaceTestInterface2 { // Default method defaultvoidshow() { System.out.println("Default TestInterface2"); } } // Implementation class code classTestClassimplementsTestInterface1, TestInterface2 { // Overriding default show method publicvoidshow() { // use super keyword to call the show // method of TestInterface1 interface TestInterface1.super.show(); // use super keyword to call the show // method of TestInterface2 interface TestInterface2.super.show(); } publicstaticvoidmain(String args[]) { TestClass d = new TestClass(); d.show(); } }