Streams and Lambdas in “Effective Java”

Canva - Stream flowing through forest.jpg

Here is a good talk by Joshua Bloch.  Among other things, he touches on best practices for the use of streams and lambdas in Java 8+.  It has the following outline:

  • Prefer lambdas to anonymous classes
  • Prefer method references to lambdas
  • Favor standard functional interfaces
  • Use streams juidiciously
  • Use caution when making streams parallel

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s