PRO192_-_SP_2025_-_Block_5_-_1_3854.webp
M

PRO192_-_SP_2025_-_Block_5_-_1_3854.webp

Kizspy Question: 12
(Choose 1 answer)
What is the output of the code snippet?
public class Test {
public static void main(String[] args) {
int a new int [5];
for(int i: a){
i = 1;
System.out.println(a[1]);
}
A. O
B. 1
C. null
D. [I@15db9742]

Thông tin

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

Share this media

Back
Bên trên Bottom