Q17.webp
ThanhTam81

Q17.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);
FJOVERFLOW.COM
A. Compile error
B. 7
C. 30
D. 90

Thông tin

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

Share this media

Back
Bên trên Bottom