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

12. (E) Both correct solutions are careful not to lose the student who has the highest idNum so far. Segment II does it by storing a reference to the student, highestSoFar. Segment III does it by storing the array index of that student. Code segment I is incorrect because it returns the first student whose idNum is greater than max, not necessarily the student with the highest idNum in the list.


































































































   994   995   996   997   998