1. How can we write a parameter less Lambda expression? a. Need to pass curly braces to denotes that there are no parameter on left side of the arrow. b. Pass empty set of parentheses on the left side of the arrow. c. In this particular case arrow is not required at all. d. No need to pass anything on the left side of the arrow. 2. Which of the following is NOT true about functional interface in Java? a. It has multiple methods that needs to be implemented. b. Lambda expression implicitly implement the single method inside functional interface. c. If a lambda expression is provided then the method name should not be provided. d. It has only a single method that needs to be implemented.
1. How can we write a parameter less Lambda expression?
a. Need to pass curly braces to denotes that there are no parameter on left side of the arrow.
b. Pass empty set of parentheses on the left side of the arrow.
c. In this particular case arrow is not required at all.
d. No need to pass anything on the left side of the arrow.
2. Which of the following is NOT true about functional interface in Java?
a. It has multiple methods that needs to be implemented.
b. Lambda expression implicitly implement the single method inside functional interface.
c. If a lambda expression is provided then the method name should not be provided.
d. It has only a single method that needs to be implemented.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps