Question 1: JAVA - Lambda Basics
What is the main purpose of lambda expressions in Java?
Question 2: JAVA - Lambda Syntax
Which is the correct syntax for a lambda expression that takes two integers a and b and returns their sum?
Question 3: JAVA - Functional Interface
Which annotation is used to mark a functional interface in Java?
Question 4: JAVA - Lambda Example
What will this code print?
Question 5: JAVA - Lambda with Thread
What will happen?
Question 6: JAVA - ForEach with Lambda
What will this code print?
Question 7: JAVA - Method Reference
Which is a valid method reference in Java?
Question 8: JAVA - Scope in Lambda
Which statement about lambda expressions is true?
Question 9: JAVA - Stream with Lambda
What will this code print?
Question 10: JAVA - Comparator with Lambda
Which lambda correctly sorts a list of strings by length?