Closures (aka Lambdas)

  • Lambda expressions (aka closures)
  • Variable capture
  • Java closure syntax variants
  • Comparators
  • What is the difference between a lambda expression and a method?
  • What is a functional interface? How is it connected to lambda expressions?
  • How could you change the code at the bottom of page 323 to make it legal, but still use the value of the variable i in the lambda?

What was particularly interesting, confusing, or exciting to you in this reading?