The method references can only be used to replace a single method of the lambda expression . A code is more clear and short if one uses a lambda expression rather than using an anonymous class and one can use method reference rather than using a single function lambda expression to achieve the same.24 Şub 2022