-
Which of these is an incorrect form of using method max() to obtain a maximum element?
-
- max(List c)
- max(Comparator comp)
- max(Collection c)
- max(Collection c, Comparator comp)
- None of these
Correct Option: B
Its illegal to call max() only with comparator, we need to give the collection to be searched into.