PRO192_-_SU_2024_-_FE2_2332.webp
Nanami871

PRO192_-_SU_2024_-_FE2_2332.webp

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

Thông tin

Category
PRO192
Thêm bởi
Nanami871
Ngày thêm
Lượt xem
4,727
Lượt bình luận
12
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom