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

24. (C) The max methods shown are overloaded methods (same name but different parameter types). In the given statement, matrix[2] and matrix[3] refer to row 2 and row 3 of the matrix, respectively, each of which is an array of int. max(matrix[2]) is the largest element in row 2, namely 7, and max(matrix[3]) is the largest element in row 3, namely 4. The given statement is therefore equivalent to max(7,4), which will return 7.


































































































   1235   1236   1237   1238   1239