Page 1016 - AP Computer Science A, 7th edition
P. 1016

22. (E) All elements added to strList must be of type String. Each choice satisfies this except choice E. Note that in choice D, the expression ch + 8 becomes a String since ch is a String (just one of the operands needs to be a String to convert the whole expression to a String). In choice E, neither intOb nor 8 is a String.


































































































   1014   1015   1016   1017   1018