What is the output after executing the following code fragment: int x = {1,2,3,4,5}; System.out.println(x0);

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

Leave a Reply

MEET OVER 2000 NOUN STUDENTS HERE. 

Join us for latest NOUN UPDATES and Free TMA answers posted by students on our Telegram. 

OUR ONLINE TUTORIAL CLASS IS NOW ON!!! JOIN US NOW. 
JOIN NOW!
close-link
%d bloggers like this: