PRO192c_-_SU_2024_-_TE2_2584.webp
vanbinh99

PRO192c_-_SU_2024_-_TE2_2584.webp

Kizspy | Question: 14
(Choose 1 answer)

What is the output of the following code snippet?
public class Test {
int x = 5;
int y = 2;
public static void main(String[] args) {
Test obj;
obj.x = 10;obj.y = 20;
} System.out.println(obj.x + obj.y);
}
A. Compile error
B. 7
C. 30
D. 90
FUOVER

Thông tin

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

Share this media

Back
Bên trên Bottom