PRO192_-_FA_2024_-_FE_2969.webp
B

PRO192_-_FA_2024_-_FE_2969.webp

Kizspy | Question: 23 (Choose 1 answer)
What is the output of the following Java program?
class A { final int a = 100;}
class B extends A { final int a = 200;}public class Main extends B {
}
final int a = 300;public static void main(String args[]) { Main t = new A();System.out.print(t.a);}
A. Compile error
B. 300
C. 200
D. 100
FUOVER

Thông tin

Category
PRO192
Thêm bởi
Bích Thủy
Ngày thêm
Lượt xem
5,281
Lượt bình luận
12
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom