Kizspy | Question: 28
(Choose 1 answer)
What is the output of the following Java program?
interface IA{
void show();
}
interface IB{
void show();
}
class MyClass implements IA, IB{
@Overridepublic void show() {
} System.out.println("@MyClass");
}
public class Main {
public static void main(String args[]) {
IA objA = new MyClass();objA.show();
}
}
A. @MyClass
B. Runtime error in the statement: objA.show();
C. Compile error in the statement: IA objA = new MyClass();
D. None of the others