PRO192_-_SU_2025_-_QUIZ2_3925.webp
Hữu Vinh

PRO192_-_SU_2025_-_QUIZ2_3925.webp

Question 20
Answer saved
Flag
question
What is the output of the following code snippet?
public class Main {
public static void main(String[] args) {
int a = 5;
changeValue(a);
System.out.println(a);
}
public static void changeValue(int a) {
a = 10;
}
}
A. 5
B. 10
OC. Compilation error
O D. Runtime error
Clear my choice
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Hữu Vinh
Ngày thêm
Lượt xem
256
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom