What is the use of predicate in java 8?



What is the use of predicate in java 8?..

Answer / Navin Gupta

In Java 8, a Predicate is a functional interface that represents a boolean-valued operation for a given input. It is commonly used to define conditions or tests within streams API, allowing developers to filter and process data based on specific criteria.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are the 3 types of control structures?

1 Answers  


What is hashing in java?

1 Answers  


Can I declare a class as private?

1 Answers  


Write a program based on Java script program.

1 Answers   Atos Origin,


How is hashset defined in java?

1 Answers  


What is variable and example?

1 Answers  


What is a protected void?

1 Answers  


Where is core java used?

1 Answers  


Explain about arraylist?

1 Answers  


What are the two ways in which thread can be created?

1 Answers  


Name component subclasses that support painting in java programming?

1 Answers  


What is getkey () in java?

1 Answers  


Categories