A class can inherit multiple default methods from different interfaces:
interface A {
default void show() { System.out.println("A"); }
}
interface B {
default void show() { System.out.println("B"); }
}
class MyClass implements A, B {
public void show() { B.super.show(); } // Resolve conflict
}
When two interfaces have conflicting default methods, the implementing class must override and decide which one to use.