Monica Shiralkar wrote:In case the functional interface has complex business logic
... does the Lambda syntax using arrow not become difficult to write in terms of arrow syntax
Monica Shiralkar wrote:Thanks. Yes the last paragraph of your answer that exactly was my question that the sole purpose is lost (as one could have directly called that method itself)
Monica Shiralkar wrote:Are lambdas used more when implementation is simple and for complex ones it is sometimes avoided?
That doesn't make any difference to the difficulty of writing the code.
Monica Shiralkar wrote:In Java in case of complex logic, inside the Lamba expression we can put the complex logic and after that we can EXPLICITLY place a return statement. . . .
It wasn't my idea to go to some crazy nightclub in the middle of nowhere. I just wanted to stay home and cuddle with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton