Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Lambda Expressions in Java
Rating: 3.3 out of 5(6 ratings)
118 students
Created bylife michael
Last updated 6/2021
English

What you'll learn

  • Understand Java's implementation for Lambda Expressions
  • Gain practical experience in the use of Lambda Expressions in Java
  • Become familiar with references to methods
  • Become familiar with references to constructors

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

7 sections7 lectures53m total length
  • Introduction5:51

Requirements

  • Experience in Java programming, and in-depth understanding of the inner classes topic. If you are not familiar with the inner classes topic, we highly recommend that you take the 'Inner Classes' course (before taking this one).

Description

Lambda expressions were introduced in Java 8 and have transformed the way developers write code. This course is your gateway to mastering lambda expressions and understanding how they relate to Java’s functional interfaces and nested class structures.

By taking this course, you’ll learn how to define and use lambda expressions effectively, replacing verbose anonymous inner classes with more concise and readable code. You’ll gain a deep understanding of the syntax and semantics behind lambdas, as well as how they interact with Java's powerful set of functional interfaces.

What You’ll Learn:

  • How to create basic lambda expressions

  • How to translate anonymous inner classes into equivalent lambda syntax

  • How to create lambda expressions that represent static methods, instance methods (on specific or arbitrary objects), and constructors

  • The use of method references as shorthand for certain lambda expressions

  • How to use Java’s built-in functional interfaces such as Runnable, Predicate, Consumer, Function, and Supplier

This course takes a hands-on, example-driven approach. Each concept is taught through live-coded demonstrations and practical explanations.

A solid understanding of Java inner classes is recommended before starting this course. If you're not yet familiar with inner classes, we strongly recommend completing our companion course, “Inner Classes in Java”, first.

By the end of this course, you'll not only be comfortable with lambda expressions—you’ll be ready to use them confidently in real-world Java development.

Who this course is for:

  • This course targets students that even though they already know Java and maybe even already work in Java programming, they still lack the in-depth understanding of the lambda expressions topic.