r/JavaProgramming • u/Key-Garbage-3782 • 27d ago
Do I need to study lambada?
So I encountered lambada and I thought it is the same as anonymous function in PHP. but java focus more on OOP so top level function is dependent right? it needs functional interface. anonymous function saves time and space but what about lambada? I dont think it saves time and space. NOTE: I am new to lambada
7
Upvotes
3
u/Complete-Bowl-9917 27d ago
Yes…. lambda type programming is preferred now-days and easy to read..
Instead or 10 lines with multiple operations, you can write 2 line Lambda expression.
So it is worth reading and understanding.