PRO192_-_FA_2024_-_Block_5_-_FE_3237.webp
plum_blossom1

PRO192_-_FA_2024_-_Block_5_-_FE_3237.webp

Kizspy | Question: 22
(Choose 1 answer)

What is the output of the following Java program?
class A {
static void display Message() { System.out.println("A Display");}
} class B extends A {
static void display Message() { System.out.println("B Display");}
}
public class Main {
public static void main(String[] args) { A objA = new B();objA.displayMessage();}}
A. A Display
B. B Display
C. A Display B Display
D. Compile error
FUOV

Thông tin

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

Share this media

Back
Bên trên Bottom