12345678910



Question 1: What is the output of the following program segment?
int[] num5 = new int[9];
for(int i = 0; i < num5.length; i++)
num5[i] = i + 5;
System.out.println(num5[7]);

1. 7
2. 0
3. 12
4. None of these