✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which of the following is the correct output for the given code snippet:
int[] myArray = { -1, 11, -3, 9 };
int sum = 0;
for ( int i = 0; i < myArray.length; i += 2 )
{
sum = sum + myArray[i] ;
}
System.out.println( sum );