What is returned by values[3]?

What is returned by values[3]?

Assume values is an int array that is currently filled to capacity, with the following values:


a) 9

b) 12

c) 2

d) 6

e) 3

Answer: c. Explanation: Java array indices start at 0, so values[3] is really the fourth array element, which is 2. 


Java

Learn More Multiple Choice Question :