1.3 - Lambda Expressions
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What is a lambda expression?
💡 Hint: Think about the syntax.
Write a lambda expression that prints 'Learning Java'.
💡 Hint: Remember the structure of a lambda expression.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is the primary purpose of a lambda expression in Java?
💡 Hint: Think about what functional interfaces need for their implementation.
Lambda expressions can take parameters.
💡 Hint: Refer back to how we defined lambda expressions.
Get performance evaluation
Challenge Problems
Push your limits with advanced challenges
Create a functional interface that defines a method to return the square of a number, and implement it using a lambda expression.
💡 Hint: Look at how you can pass the parameter to compute its square.
Write a lambda expression that filters a list of integers to return only even numbers, using the Stream API.
💡 Hint: What method is used to filter data in streams?
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.