Javarevisited
Published in

Javarevisited

Experienced Developers, Use These Quirks to Create Better Java Lambdas

How Java lambdas beat anonymous classes’ performance

Business photo created by yanalya — www.freepik.com

You heard these claims:

  • “Lambdas are only syntactic sugar for anonymous classes!”
  • “Lambdas are slow, use anonymous classes!”
  • “Lambdas are the de facto solution for stream

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store