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 will be the output of the following code?
int[] arr = new int[9];
System.out.println(arr[9]);
1.
0
2.
Some Junk Value
3.
error because array is not initialized
4.
error because index is out of range