PRO192_-_FA_2024_-_Block_5_-_FE_3237.webp
plum_blossom1

PRO192_-_FA_2024_-_Block_5_-_FE_3237.webp

Kizspy | Question: 17
(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
plum_blossom1
Ngày thêm
Lượt xem
3,892
Lượt bình luận
10
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom