Look at the code below. What is the result of invoking the main method?
class Main {
public static void main(String... args) {
Speaker speaker = new Speaker();
speaker.notify();
}
}
class Speaker implements Notification, Alarm {
}
interface Notification {
default void notify() {
System.out.println("Hello World!");
}
}
interface Alarm {
default void notify() {
System.out.println("Attention");
}
}