Welcome to the Ranch

Kumar S wrote:Lambda Expressions, also known as lambda functions . . .
No. a λ function is different from a λ expression. A λ function is a mathematical generalisation of a particular kind of function and a λ expression is a Java® idiom for creating an object. If you look at the old anonymous local class idiom, you will find that you can derive a λ expression from an anonymous class created from a functional interface.
. . . https://reloadbasics.com/ . . .
I hope you didn't write that tutorial, because it is just about the worst tutorial I have ever seen. The code in it is all incorrect.