Difference between predicate, supplier and consumer ?
Answer / Chaina Khatoon
In Java 8, Predicate is a functional interface that represents any operation on a single input that returns a boolean value. Supplier is an interface that represents a supplier of results, providing no input. Consumer is a functional interface that accepts one input (of any type) and returns nothing.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you declare a variable?
How will you override default serialization mechanism in java
State some situations where exceptions may arise in java?
How does serialization work
How we can make copy of a java object?
Can I declare class as static or private?
What is a function easy definition?
what is difference between type 4 driver and type 1 driver?
2 Answers CMC, CTS, IBM, JK Technosoft, Napier Healthcare,
What is abstract class constructor called?
How do generics work?
Explain where variables are created in memory?
How to display arraylist values in java?