139k views
3 votes
What is output by the code below?

int[] nums = new int[10];

for (int i=0; i < nums.length; i++)

{

nums[i] = i*2;

}

System.out.println(nums[5]);

a.16
b. 10
c. 14
d. 18
e. 12​

User Derric
by
5.0k points

1 Answer

4 votes

Answer: I think it is a

Explanation:Sorry if it it is worng

User Gskalinskii
by
4.9k points