☕ Java path
Java 8 interview questions and study guide
10 lessons from beginner to advanced. Each lesson explains the concept, shows a worked example and lists the follow-up questions interviewers ask next.
Start with lesson 1 →Intermediate 8 lessons
- Java 8: Count word frequencies in a text. How many ways can you solve it, from feasible to optimal?
- Java 8: Find duplicate elements in a list. Show every approach from brute force to optimal.
- Java 8: Find the first non-repeating character in a string. Compare all approaches.
- Java 8: Sort a list of employees by several fields. Show the evolution from anonymous Comparator to Comparator.comparing.
- Java 8: Replace nested null checks with Optional. Show the alternatives and the anti-patterns.
- Java 8: How do default and static interface methods let you evolve an API? Show the alternatives.
- Java 8: Date and time problems with java.time (age, business days, time zones). Compare legacy and modern solutions.
- Java 8: Compute revenue per product from orders (flatMap, groupingBy, reduce). Compare loop and stream solutions.