Explanation: `Callable` returns a value and may throw an exception.
Dear candidates you will find MCQ questions of JAVA here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
Explanation: `Callable` returns a value and may throw an exception.
Explanation: `Function<String, Integer>` takes a String input and returns an Integer.
Explanation: `Function` can be composed and chained using `andThen` and `compose`.
Explanation: `BiFunction` takes two inputs and returns a result.
Explanation: Functional interfaces enable the use of lambda expressions.
Explanation: `Predicate` is functional because it has only one abstract method despite default methods.
Explanation: `Consumer.accept()` consumes input and returns nothing (void).
Explanation: Java 8 introduced functional interfaces along with lambda expressions.
Explanation: `Callable` can return a value and throw a checked exception.