PRO192_-_SU_2024_-_RE_2466.webp
B

PRO192_-_SU_2024_-_RE_2466.webp

Kizspy | Question: 18
(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
bright_moon
Ngày thêm
Lượt xem
2,501
Lượt bình luận
8
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom