What is the benefit of using a lambda expression with a Comparator?
It makes sorting slower
It eliminates the need for method references
It reduces boilerplate code
It is only supported from Java 17 onwards
This question is part of this quiz :
Java Interface types and Comparator