PRO192_-_SP_2025_-_Block_5_-_1_3854.webp
M

PRO192_-_SP_2025_-_Block_5_-_1_3854.webp

Kizspy Question: 16
(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);
FULWERE JM.COM
A. Compile error
B. 7
C. 30
D. 90

Thông tin

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

Share this media

Back
Bên trên Bottom