Solved

Code Example Ch 08-1

Question 10

Multiple Choice

Code Example Ch 08-1
Assume an int array, values, that is filled to capacity with the following values:
|18 | 9 | 4 | 12 | 2 | 6 | 8 |
-Refer to Code Example Ch 08-1: What will the following statement do? System.out.println(values[7]) ;


A) output 7
B) output 18
C) output nothing
D) cause an ArrayOutOfBoundsException to be thrown
E) cause a syntax error

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions