--:--









Quiz for Lambda Expressions

Course: JAVA | Subject: Java | Topic: Java 8 Features



Logo

Q1: What is a lambda expression in Java?

Logo

Q2: Which interface type is required for using lambda expressions?

Logo

Q3: Which annotation is used to mark a functional interface?

Logo

Q4: Which of the following is a valid lambda expression?

Logo

Q5: What is the benefit of using lambda expressions?

Logo

Q6: Which method can be implemented using a lambda for Runnable?

Logo

Q7: Can a lambda expression access local variables?

Logo

Q8: Which of these is a built-in functional interface in Java?

Logo

Q9: Which functional interface accepts two arguments and produces a result?

Logo

Q10: What is the return type of a lambda expression?

Are you ready to start test? Set your time limit