What symbol is used in the syntax of a Lambda expression in Java?
- ->
- ::
- =>
- {}
In Java, the syntax of a lambda expression uses the -> symbol. It separates the lambda parameters from the lambda body and is a distinctive feature of lambda expressions, making them easy to identify in code.
Loading...
Related Quiz
- The class ________ provides methods to work with SSL sockets.
- In a large-scale application that reads data from external files, how would you design an exception-handling mechanism to not only log the issues for the developers but also to provide friendly feedback to the end-users, ensuring that the system does not crash upon encountering an exception?
- The keyword ________ is used within a constructor to call another constructor in the same class.
- What is the primary difference between StringBuilder and StringBuffer classes in Java?
- ReentrantLock belongs to the ______ package in Java.