☕ Java path
Java 17 interview questions and study guide
8 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 5 lessons
- Java 17: Use records for value objects and composite keys. Compare POJO, string keys, nested maps and records.
- Java 17: Switch expressions. Compare if-else, classic switch, map lookups, switch expressions and enums.
- Java 17: Build multi-line SQL and JSON with text blocks. Compare concatenation, StringBuilder and text blocks safely.
- Java 17: Immutable and unmodifiable collections. Compare Arrays.asList, unmodifiableList, List.of, List.copyOf and Stream.toList.
- Java 17: Call a REST API with the Java 11 HttpClient. Compare HttpURLConnection, sync, async and retrying clients.
Advanced 3 lessons
- Java 17: Sealed classes and pattern matching for instanceof. Compare instanceof casts, polymorphism, the visitor pattern and sealed types.
- Java 17: Sum all numbers in a nested, mixed-type structure. Compare casts, pattern matching, streams and an iterative stack.
- Java 17: Parse a log section with the Java 9 to 17 Stream and String APIs. Compare loops, Java 8 streams and modern streams.