Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store

Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Java 8 Interview Questions and Answers

  Difficulty Level: AllBeginnerIntermediateExperienced/Expert

Ques 1. What are new features which got introduced in Java 8?

Ques 2. What are main advantages of using Java 8?

Ques 3. What is lambda expression?

Ques 4. Can you explain the syntax of Lambda expression?

Ques 5. What are functional interfaces?

Ques 6. How lambda expression and functional interfaces are related?

Ques 7. Can you create your own functional interface?

Ques 8. What is method reference in java 8?

Ques 9. What Is a Default Method and When Do We Use It?

Ques 10. What is Optional and how can we use it?

Ques 11. What is the difference between Predicate and Function?

Ques 12. What the issues with Old Date and time API before Java 8? Date and Time API differences between Java 8 and earlier Java version.

Ques 13. Provide some APIs of Java 8 Date and Time.

Ques 14. How will you get current date and time using Java 8 Date and TIme API?

Ques 15. Do we have PermGen in Java 8? What is MetaSpace in Java 8?

Ques 16. Given a list of employees, sort all the employee on the basis of age by using java 8 APIs only.

Ques 17. Given the list of employees, find the employee with name 'John' using Java 8 API.

Ques 18. Given a list of employee, find maximum age of employee using Java 8 API.

Ques 19. Difference between Intermediate and terminal operations in Stream.

Ques 20. Provide some examples of Intermediate operations.

Ques 21. Provide some examples of Terminal operations.

Ques 22. Given the list of numbers, remove the duplicate elements from the list.

Ques 23. Difference between Stream findFirst() and findAny().

Ques 24. What is consumer function interface?

Ques 25. What is predicate function interface?

Ques 26. What Is a Stream? How Does It Differ from a Collection?

Ques 27. What Is the Difference Between Map and flatMap Stream Operation?

Ques 28. What is Stream Pipelining in Java 8?

Ques 29. What does the flatmap() function do? why you need it?

Ques 30. What is the parallel Stream? How can you get a parallel stream from a List?

©2020 WithoutBook