Answers to Self-Review Exercises
b) variables, type.
d) index (or subscript or position number).
for ( double d : numbers ).
g) an array of
args by convention.
a) False. An array can store only values of the same type.
b) False. An array index must be an integer or an integer expression.
c) For individual primitive-type elements of an array: False. A called method receives and manipulates a copy of the value of such an element, so modifications do not affect the original value. If the reference of an array is passed to a method, however, modifications to the array elements made in the called method are indeed reflected in the original. For individual elements ...