What is the output after executing the following code fragment: int [] x = {1,2,3,4,5}; System.out.println(x[0]);
\(0\)
*1*
2
Array Index Out Of Bounds Exception
Virus-free. www.avg.com |
Tutors, Past Questions and Projects.
What is the output after executing the following code fragment: int [] x = {1,2,3,4,5}; System.out.println(x[0]);
\(0\)
*1*
2
Array Index Out Of Bounds Exception
Virus-free. www.avg.com |