Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a lambda expression?
Think about how it can implement a functional interface.
How many methods can a lambda expression override?
Consider the definition of functional interfaces.
Which of the following statements is true?
Consider method overriding capabilities.
True or False: this in a lambda expression refers to the anonymous class instance.
Think about scope of `this`.
Given a functional interface with more than one method, can a lambda implement it? Explain your reasoning.
Recall the definition of functional interfaces.
Consider a scenario where performance is critical. Which would you choose, a lambda or an anonymous class? Justify your choice.
Think of how each affects performance.
4 more questions in this section. Enroll free to practise them all.
Enroll free