Question: Given int[] values = {1, 2, 3, 4, 5, 6, 7, 8, 9};, What will be printed out by the following code? for (int index
![Given "int[] values = {1, 2, 3, 4, 5, 6, 7,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f45224354fc_84366f45223cac73.jpg)
Given "int[] values = {1, 2, 3, 4, 5, 6, 7, 8, 9};", What will be printed out by the following code? for (int index = values.length-1, index > = 0: index--) System.out.print (values[index]): A. It will generate ArrayIndexOutOfBoundsException error B. 87654321 C. 987654321 D. 876543210
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
