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. . . .
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton