πŸ“Š JAVA
Q. What is the purpose of the `Predicate` functional interface?
  • (A) Consume an input and produce a result
  • (B) Test a condition on input and return boolean
  • (C) Supply values with no input
  • (D) Chain multiple consumers
πŸ’¬ Discuss
βœ… Correct Answer: (B) Test a condition on input and return boolean

Explanation: `Predicate` takes an input and returns a boolean result based on a condition.

Explanation by: Mr. Dubey
`Predicate` takes an input and returns a boolean result based on a condition.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
53
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate