class SuperClass {
void display() {
System.out.println("Display method from SuperClass");
}
}
interface MyInterface {
default void display() {
System.out.println("Display method from MyInterface");
}
}
class SubClass extends SuperClass implements MyInterface {
// No need to override display() method
}
public class Main {
public static void main(String[] args) {
SubClass obj = new SubClass();
obj.display();
}
}
what should be the output of this code?