Question 17
Back to Exercise
Why use IntPredicate instead of Predicate<Integer>?
- A It accepts any number
- B It works with primitive int values and avoids boxing to Integer Correct
- C It is required by streams
- D It returns int
Correct Answer: Option B
Similar: IntFunction, ToIntFunction, IntBinaryOperator, IntSupplier…
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!