InterviewSolution
Saved Bookmarks
| 1. |
Which of these is an incorrect form of using method max() to obtain a maximum element?(a) max(Collection c)(b) max(Collection c, Comparator comp)(c) max(Comparator comp)(d) max(List c) |
|
Answer» The correct choice is (c) max(Comparator comp) To explain: Its illegal to call max() only with comparator, we need to give the collection to be searched into. |
|