How does a method reference differ from a lambda expression?
A method reference is essentially a shorthand for a lambda expression that calls a method directly, making the code more concise.
Nice! You've captured the main difference between method references and lambda expressions.
Can you provide an example where using a method reference makes the code cleaner than using a lambda expression?