This really is an interface so it signifies that any item can apply Equivalent. We will be able to sort any object that implements Equivalent employing Collections.sort(); Comparing null objects could cause awful NullPointerException though running your code, one thing you want to stay away from. Pay distinct awareness to https://lambda-with-comparators44321.ka-blogs.com/65062054/java-8-lambda-fundamentals-explained