All skill tracks
languages field guide
Java
The JVM, collections, generics, and concurrency for backend and enterprise Java interviews.
4 difficulty sections16 modules0 lessons4160 min
16
Modules
0/128
Lessons written
4160 min
Total read time
4
Difficulty sections
Cheat sheet: Java at a glance

128 of 0 lessons
- 1What is Source to bytecode to machine code, and what problem does it solve?Basicconceptual30 minIn writing
- 2Walk me through how jit compilation and hotspot actually works under the hood.Basicconceptual35 minIn writing
- 3What's the practical difference that trips people up about platform independence tradeoffs?Basicconceptual30 minIn writing
- 4How would you use javac vs java in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 5What's the tradeoff with java's versioning and lts releases, and when would you choose differently?Intermediatepractical35 minIn writing
- 6What's a subtle bug or edge case people hit with when java is the wrong tool?Intermediateconceptual30 minIn writing
- 7In production, an issue traces back to source to bytecode to machine code. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 8Quiz: check your grasp of why java and the jvm.Basicconceptual20 minIn writing
- 9What is 8 primitive types and defaults, and what problem does it solve?Basicconceptual30 minIn writing
- 10Walk me through how autoboxing and unboxing costs actually works under the hood.Basicconceptual35 minIn writing
- 11What's the practical difference that trips people up about integer caching (-128 to 127)?Basicconceptual30 minIn writing
- 12How would you use == vs .equals() on wrappers in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 13What's the tradeoff with nullpointerexception from unboxing null, and when would you choose differently?Intermediatepractical35 minIn writing
- 14What's a subtle bug or edge case people hit with immutability of wrapper types?Intermediateconceptual30 minIn writing
- 15In production, an issue traces back to 8 primitive types and defaults. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 16Quiz: check your grasp of primitive types, autoboxing, and objects.Basicconceptual20 minIn writing
- 17What is Constructor chaining with this()/super(), and what problem does it solve?Basicconceptual30 minIn writing
- 18Walk me through how instance vs static initializer blocks actually works under the hood.Basicconceptual35 minIn writing
- 19What's the practical difference that trips people up about object creation order?Basicconceptual30 minIn writing
- 20How would you use final fields and immutability in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 21What's the tradeoff with equals()/hashcode()/tostring() contracts, and when would you choose differently?Intermediatepractical35 minIn writing
- 22What's a subtle bug or edge case people hit with builder pattern for complex objects?Intermediateconceptual30 minIn writing
- 23In production, an issue traces back to constructor chaining with this()/super(). How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 24Quiz: check your grasp of classes, constructors, and object lifecycle.Basicconceptual20 minIn writing
- 25What is extends vs implements, and what problem does it solve?Basicconceptual30 minIn writing
- 26Walk me through how method overriding vs overloading actually works under the hood.Basicconceptual35 minIn writing
- 27What's the practical difference that trips people up about abstract classes vs interfaces?Basicconceptual30 minIn writing
- 28How would you use default and static interface methods in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 29What's the tradeoff with diamond problem with default methods, and when would you choose differently?Intermediatepractical35 minIn writing
- 30What's a subtle bug or edge case people hit with liskov substitution violations?Intermediateconceptual30 minIn writing
- 31In production, an issue traces back to extends vs implements. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 32Quiz: check your grasp of inheritance, interfaces, and polymorphism.Basicconceptual20 minIn writing
- 33What is ArrayList vs LinkedList, and what problem does it solve?Basicconceptual30 minIn writing
- 34Walk me through how hashmap vs treemap vs linkedhashmap actually works under the hood.Basicconceptual35 minIn writing
- 35What's the practical difference that trips people up about hashset uniqueness and hashcode?Basicconceptual30 minIn writing
- 36How would you use fail-fast iterators and concurrentmodificationexception in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 37What's the tradeoff with comparable vs comparator, and when would you choose differently?Intermediatepractical35 minIn writing
- 38What's a subtle bug or edge case people hit with immutable collections (list.of)?Intermediateconceptual30 minIn writing
- 39In production, an issue traces back to arraylist vs linkedlist. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 40Quiz: check your grasp of collections framework (list, set, map).Basicconceptual20 minIn writing
- 41What is Type erasure at runtime, and what problem does it solve?Basicconceptual30 minIn writing
- 42Walk me through how bounded type parameters (extends) actually works under the hood.Basicconceptual35 minIn writing
- 43What's the practical difference that trips people up about wildcards: ? extends vs ? super?Basicconceptual30 minIn writing
- 44How would you use generic methods vs generic classes in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 45What's the tradeoff with why you can't do new t(), and when would you choose differently?Intermediatepractical35 minIn writing
- 46What's a subtle bug or edge case people hit with raw types and unchecked warnings?Intermediateconceptual30 minIn writing
- 47In production, an issue traces back to type erasure at runtime. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 48Quiz: check your grasp of generics and type erasure.Basicconceptual20 minIn writing
- 49What is Checked vs unchecked exceptions, and what problem does it solve?Basicconceptual30 minIn writing
- 50Walk me through how try-with-resources and autocloseable actually works under the hood.Basicconceptual35 minIn writing
- 51What's the practical difference that trips people up about custom exception hierarchies?Basicconceptual30 minIn writing
- 52How would you use exception chaining with cause in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 53What's the tradeoff with finally vs try-with-resources ordering, and when would you choose differently?Intermediatepractical35 minIn writing
- 54What's a subtle bug or edge case people hit with when to catch vs rethrow?Intermediateconceptual30 minIn writing
- 55In production, an issue traces back to checked vs unchecked exceptions. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 56Quiz: check your grasp of exception handling.Basicconceptual20 minIn writing
- 57What is Lambda syntax and functional interfaces, and what problem does it solve?Basicconceptual30 minIn writing
- 58Walk me through how stream laziness and terminal operations actually works under the hood.Basicconceptual35 minIn writing
- 59What's the practical difference that trips people up about map/filter/reduce/collect?Basicconceptual30 minIn writing
- 60How would you use stream vs for-loop performance in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 61What's the tradeoff with parallel streams and when to avoid them, and when would you choose differently?Intermediatepractical35 minIn writing
- 62What's a subtle bug or edge case people hit with method references?Intermediateconceptual30 minIn writing
- 63In production, an issue traces back to lambda syntax and functional interfaces. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 64Quiz: check your grasp of streams and lambda expressions.Basicconceptual20 minIn writing
- 65What is Thread vs Runnable vs Callable, and what problem does it solve?Basicconceptual30 minIn writing
- 66Walk me through how executorservice and thread pools actually works under the hood.Basicconceptual35 minIn writing
- 67What's the practical difference that trips people up about future and completablefuture?Basicconceptual30 minIn writing
- 68How would you use fixed vs cached vs scheduled pools in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 69What's the tradeoff with shutdown vs shutdownnow, and when would you choose differently?Intermediatepractical35 minIn writing
- 70What's a subtle bug or edge case people hit with common thread pool sizing mistakes?Intermediateconceptual30 minIn writing
- 71In production, an issue traces back to thread vs runnable vs callable. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 72Quiz: check your grasp of concurrency: threads and the executor framework.Basicconceptual20 minIn writing
- 73What is synchronized methods vs blocks, and what problem does it solve?Basicconceptual30 minIn writing
- 74Walk me through how volatile and visibility actually works under the hood.Basicconceptual35 minIn writing
- 75What's the practical difference that trips people up about the happens-before relationship?Basicconceptual30 minIn writing
- 76How would you use deadlock conditions and avoidance in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 77What's the tradeoff with java.util.concurrent locks (reentrantlock), and when would you choose differently?Intermediatepractical35 minIn writing
- 78What's a subtle bug or edge case people hit with atomic classes vs synchronized?Intermediateconceptual30 minIn writing
- 79In production, an issue traces back to synchronized methods vs blocks. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 80Quiz: check your grasp of synchronization and the java memory model.Basicconceptual20 minIn writing
- 81What is Young/old generation and generational hypothesis, and what problem does it solve?Basicconceptual30 minIn writing
- 82Walk me through how g1 vs zgc vs parallel gc actually works under the hood.Basicconceptual35 minIn writing
- 83What's the practical difference that trips people up about stop-the-world pauses?Basicconceptual30 minIn writing
- 84How would you use heap sizing flags (-xms/-xmx) in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 85What's the tradeoff with memory leaks despite gc (listeners, statics), and when would you choose differently?Intermediatepractical35 minIn writing
- 86What's a subtle bug or edge case people hit with reading a gc log?Intermediateconceptual30 minIn writing
- 87In production, an issue traces back to young/old generation and generational hypothesis. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 88Quiz: check your grasp of garbage collection and jvm tuning.Basicconceptual20 minIn writing
- 89What is Records vs traditional POJOs, and what problem does it solve?Basicconceptual30 minIn writing
- 90Walk me through how sealed classes and exhaustive switch actually works under the hood.Basicconceptual35 minIn writing
- 91What's the practical difference that trips people up about pattern matching for instanceof/switch?Basicconceptual30 minIn writing
- 92How would you use var for local type inference in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 93What's the tradeoff with text blocks, and when would you choose differently?Intermediatepractical35 minIn writing
- 94What's a subtle bug or edge case people hit with virtual threads (project loom)?Intermediateconceptual30 minIn writing
- 95In production, an issue traces back to records vs traditional pojos. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 96Quiz: check your grasp of records, sealed classes, and modern java.Basicconceptual20 minIn writing
- 97What is Built-in annotations (@Override, @Deprecated), and what problem does it solve?Basicconceptual30 minIn writing
- 98Walk me through how custom annotations and retention policy actually works under the hood.Basicconceptual35 minIn writing
- 99What's the practical difference that trips people up about reflection api basics?Basicconceptual30 minIn writing
- 100How would you use reflection performance cost in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 101What's the tradeoff with annotation processing vs runtime reflection, and when would you choose differently?Intermediatepractical35 minIn writing
- 102What's a subtle bug or edge case people hit with where frameworks use this under the hood?Intermediateconceptual30 minIn writing
- 103In production, an issue traces back to built-in annotations (@override, @deprecated). How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 104Quiz: check your grasp of annotations and reflection.Basicconceptual20 minIn writing
- 105What is Maven's POM and lifecycle phases, and what problem does it solve?Basicconceptual30 minIn writing
- 106Walk me through how gradle's task graph actually works under the hood.Basicconceptual35 minIn writing
- 107What's the practical difference that trips people up about dependency scope (compile/runtime/test)?Basicconceptual30 minIn writing
- 108How would you use transitive dependency conflicts in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 109What's the tradeoff with multi-module project layout, and when would you choose differently?Intermediatepractical35 minIn writing
- 110What's a subtle bug or edge case people hit with reproducible builds?Intermediateconceptual30 minIn writing
- 111In production, an issue traces back to maven's pom and lifecycle phases. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 112Quiz: check your grasp of build tools and dependency management (maven/gradle).Basicconceptual20 minIn writing
- 113What is Classloader delegation model, and what problem does it solve?Basicconceptual30 minIn writing
- 114Walk me through how class loading, linking, initialization phases actually works under the hood.Basicconceptual35 minIn writing
- 115What's the practical difference that trips people up about bytecode verification?Basicconceptual30 minIn writing
- 116How would you use noclassdeffounderror vs classnotfoundexception in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 117What's the tradeoff with jar and classpath resolution order, and when would you choose differently?Intermediatepractical35 minIn writing
- 118What's a subtle bug or edge case people hit with javap for reading bytecode?Intermediateconceptual30 minIn writing
- 119In production, an issue traces back to classloader delegation model. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 120Quiz: check your grasp of jvm internals: classloading and bytecode.Basicconceptual20 minIn writing
- 121What is JUnit 5 lifecycle annotations, and what problem does it solve?Basicconceptual30 minIn writing
- 122Walk me through how mocking with mockito actually works under the hood.Basicconceptual35 minIn writing
- 123What's the practical difference that trips people up about parameterized and integration tests?Basicconceptual30 minIn writing
- 124How would you use jfr and async-profiler basics in a real implementation, and what would you watch out for?Intermediatepractical35 minIn writing
- 125What's the tradeoff with detecting a memory leak with a heap dump, and when would you choose differently?Intermediatepractical35 minIn writing
- 126What's a subtle bug or edge case people hit with testing concurrent code?Intermediateconceptual30 minIn writing
- 127In production, an issue traces back to junit 5 lifecycle annotations. How do you diagnose and fix it?Scenarioscenario45 minIn writing
- 128Quiz: check your grasp of testing and profiling in java.Basicconceptual20 minIn writing