A
Q. What happens if the following program is compiled and executed?
interface MyInterface{
void display();
}
interface MySubInterface extends MyInterface{
void display();
}
public class Test implements MySubInterface{
public void display(){
System.out.print("Welcome to Examveda.");
}
public static void main(String args[]){
Test t = new Test();
t.display();
}
}
- Correct Answer - Option(C)
- Views: 14
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.