Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Introduction to Lambdas

Header Image

  1. What are lambdas?
    • This article explores the definition and benefits of using lambdas in Java, focusing on their use as functional interfaces, with collections and streams, and for improving code performance.
  2. Lambda syntax
    • This article covers the syntax of lambda expressions in Java, including the parameters and body of a lambda expression, and how to use lambda expressions with functional interfaces.
  3. Lambda expressions vs. anonymous inner classes
    • This article explores the differences between lambda expressions and anonymous inner classes in Java, highlighting the advantages of using lambdas in terms of code conciseness, efficiency, expressiveness, reusability, and testability.
  4. Lambdas with Streams
    • This article covers the basics of using lambdas with streams in Java, including an introduction to the Streams API, common stream operations, stream pipelines, and examples of how to use lambdas to manipulate data efficiently and effectively.
  5. Lambdas with Collections
    • The article discusses the use of lambdas with collections in Java, including examples of common collection operations, collection pipelines, and the differences between intermediate and terminal operations in pipelines.

Table of contents