Page 1018 - AP Computer Science A, 7th edition
P. 1018
23. (C) The effect of choice C is to adjust the size of the list to 7 and to add the Integer 9 to the last slot (i.e., the slot with index 6). Choices A, D, and E will all cause an IndexOutOfBoundsException because there is no slot with index 6: the last slot has index 5. Choice B will cause a compile-time error, since it is attempting to add an element of type Double to a list of type Integer.