PRO192_-_FA_2024_-_Block_5_-_FE_3237.webp
plum_blossom1

PRO192_-_FA_2024_-_Block_5_-_FE_3237.webp

Kizspy | Question: 21
(Choose 1 answer)
What is the output of the following Java program?
class A {
int variableOne = 100;
} class B extends A {
int variable Two = 200;
} public class Main {
public static void main(String[] args) { A objA = new B();}
System.out.println(objA.variableOne);
}
A. 100
B. 200
C. 300
D. 0
FUOVE

Thông tin

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

Share this media

Back
Bên trên Bottom