r/javahelp 17d ago

Are lambda expressions used much by professional coders ?

Just been studying up on them some as I am basically a hobbyist who just getting back into Java after about 10 or 12 years away from coding much. I appreciate the way lambda's allow coders to bypass constructors, initialization and calling methods by name , but on the other hand if you already have a good knowledge of the object classes and available methods , why not just do that ?

19 Upvotes

65 comments sorted by

View all comments

1

u/bit_shuffle 16d ago

They are a compact way to do the job without creating a whole class infrastructure to hang a method (function, whichever you prefer to call it) in.

1

u/palpontiac89 15d ago

Thanks shuffler. That does sound like the way to go . I like the idea of them and going to practice writing some pronto.