Java interview
Java interview preparation
9 modules · 67 interview questions with model answers · a quiz in every module.
0 / 9 doneWork through the modules in order, or jump to what your next interview needs. Each module explains the concepts with runnable Java, lists the questions interviewers actually ask with answers you can say out loud, and ends with a quick check. Where an idea has an animation in dotprep (HashMap buckets, the call stack, heaps), the module links to it.
Module 1
Core Java & OOP
Classes, objects and the four pillars of object-oriented programming, the way interviewers ask about them.
beginner 18 min 9 Q&AModule 2
Strings & memory
Why String is immutable, how the string pool works, StringBuilder, and where Java keeps your data.
beginner 14 min 7 Q&AModule 3
Exception handling
Checked vs unchecked, try-with-resources, finally's surprises, and how to design your own exceptions.
beginner 12 min 7 Q&AModule 4
Collections framework
List, Set, Map and Queue: which to pick, how HashMap works inside, and the questions every Java interview asks.
intermediate 22 min 9 Q&AModule 5
Generics
Type parameters, bounded types, wildcards and PECS, and what type erasure means for your code.
intermediate 12 min 5 Q&AModule 6
Java 8+ features
Lambdas, functional interfaces, streams, Optional, and the modern additions: records, var, switch expressions and sealed types.
intermediate 20 min 8 Q&AModule 7
Multithreading & concurrency
Threads, synchronization, volatile, executors, deadlocks and CompletableFuture: the most-asked senior Java topic.
advanced 24 min 9 Q&AModule 8
JVM internals & garbage collection
JDK vs JRE vs JVM, class loading, memory areas, how garbage collection works and the collectors you can choose.
advanced 16 min 7 Q&AModule 9
Design patterns & SOLID
SOLID principles and the patterns interviewers ask for most: Singleton, Factory, Builder, Strategy, Observer, Decorator.
intermediate 18 min 6 Q&A