Java
T
point
Home
Python
Java
JavaScript
HTML
SQL
PHP
C#
C++
DS
Aptitude
Reasoning
Selenium
DBMS
C
Android
Interview Q
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
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