1.3.3 - With Parameters
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 functional interface?
💡 Hint: Think about the definition of functional programming.
Write a simple lambda expression that prints a greeting.
💡 Hint: You need to define an action that can be executed.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is a functional interface?
💡 Hint: Think about what defines a functional interface in Java.
True or False: Lambda expressions can be used with any type of interface.
💡 Hint: Recall the characteristics of lambda expressions.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Create a functional interface that defines a method to transform a string to uppercase. Implement it with lambda, then use it to process a list of strings.
💡 Hint: You'll need to define an interface, a lambda expression, and then use a stream to apply it.
Using the Stream API, write a method that takes a list of integer values and returns a list of doubled values only for those greater than 10.
💡 Hint: Make sure you filter before mapping to achieve the desired output.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.