java 8 interview question | built in functional interfaces in java | Java 8 new features | okay java

Published: 15 April 2021
on channel: okay java
3,358
37

java 8 interview question | built in functional interfaces in java | Java 8 new features | okay java

What is functional interface (S.A.M.)?
A functional interface is an interface that contains only one abstract method (Single Abstract Method)
A functional interface can have any number of default and static methods
@FunctionalInterface annotation is used to ensure an interface can’t have more than one abstract method

What is built-in function interface?
Java 8 provides several in-built functional interfaces that can be used when creating lambda expressions or method references.

Predicate / boolean-valued function
The Predicate interface has an abstract method test which gives a Boolean value as a result for the specified argument

Function
The Function interface has an abstract method apply which takes argument of type T and returns a result of type R.

What is Consumer
The Consumer interface has only one single method called accept(). It accepts a single argument of any data type and does not return any result.

What is Supplier
A Supplier interface has only one single method called get(). It does not accept any arguments and returns an object of any data type.

What is UnaryOperator Interface ?

What is Predicate Joining ?
Join multiple predicates and apply on same input data
1. Predicate.and() – Logical AND
When evaluating the composed predicate, if first predicate is false, then the other predicate is not evaluated.
2. Predicate.or() – Logical OR
When evaluating the composed predicate, if first predicate is true, then the other predicate is not evaluated.

What is Function Chaining?

1. Java 8 new features
   • Java 8 features | okay java | Java 8 ...  

2. Java 8 functional interface part
   • Java 8 functional interface part | fu...  

3. Java 8 functional interface coding
   • Java 8 functional interface coding | ...  

4. Functional Interface prior to Java 8
   • Functional Interface prior to Java 8 ...  

5. Default methods in interface
   • Default methods in interface | java 8...  

6. Default methods Diamond Problem in java 8
   • Default methods Diamond Problem in ja...  

7. Java 8 lambda expression
   • Java 8 lambda expression | okay java ...  

8. Lambda expression variable scope interview questions
   • Lambda expression variable scope inte...  

9. Java 8 predicate functional Interface
   • Java 8 predicate functional Interface...  

10. Java 8 function interface
   • Java 8 function interface | java 8 in...  

11. Java 8 consumer functional interface
   • Java 8 consumer functional interface ...  

12. java 8 supplier functional interface
   • java 8 supplier functional interface ...  

13. Java 8 method reference
   • Java 8 method reference okay java | J...  

14. Java 8 optional class
   • Java 8 optional class | java optional...  

15. Java 8 stream pipeline flow
   • Java 8 stream pipeline flow | java 8 ...  

16. Java 8 stream api operations
   • Java 8 stream api operations | java 8...  

17. create java 8 stream
   • create java 8 steam | stream.of | fun...  

18. stream api - create java 8 streams
   • java 8 stream stream api | generate i...  

19. java 8 stream api- range v/s rangeclosed
   • java 8 stream api | range v/s rangecl...  

20. java 8 stream api - filter | collect
   • java 8 stream api | filter | collect ...  

21. java 8 stream api - map function distinct | filter
   • java 8 stream api  | map function | m...  

22. java 8 stream api - flatmap
   • java 8 stream api | flatmap | flatmap...  

23. java 8 interview question - sort employee list using stream api function
   • java 8 interview question | sort empl...  

24. java 8 interview question - built in functional interfaces in java
   • java 8 interview question | built in ...  

25. Create Immutable class in Java
   • Create Immutable class in Java | Writ...  

26. what is a web service ?
   • what is a web service ? | web service...  

27. Watch Introduction to Microservices 08.50 Minutes
   • okay java | introduction to microserv...  

28. Watch Microservices components in one video 20 Minutes
   • okayjava | microservices components |...  

29. Watch How to Install Spring Tool Suite on Windows Machine
   • okay java | install spring tool suite...  

Subscribe and share okayjava
https://www.youtube.com/okayjava?sub_...


On this page of the site you can watch the video online java 8 interview question | built in functional interfaces in java | Java 8 new features | okay java with a duration of hours minute second in good quality, which was uploaded by the user okay java 15 April 2021, share the link with friends and acquaintances, this video has already been watched 3,358 times on youtube and it was liked by 37 viewers. Enjoy your viewing!