0
What is the output of the following Java program?
interface I { default void hi() { System.out.print("I"); } }
class A implements I {
public void hi() { System.out.print("A"); I.super.hi(); }
}
public class Main {
public static void main(String[] args) { new A().hi(); }
}- AIA
- BAI
- CA
- DI
Correct answer: B