easyoopfundamentalsThe four OOP principlesWhat are the four core principles of Object-Oriented Programming and how does Java support each one?โพ
easyoopinterfacesfundamentalsInterface vs abstract classWhat is the difference between an interface and an abstract class in Java? When should you use each?โพ
easyoopcollectionsfundamentalsequals() and hashCode() contractExplain the equals/hashCode contract in Java. What breaks if you violate it?โพ
easystringsmemoryfundamentalsString pool and immutabilityWhy is String immutable in Java? What is the String pool and how does it work?โพ
easyprimitivesfundamentalspitfallsAutoboxing and unboxingWhat is autoboxing in Java? What are the performance and correctness pitfalls?โพ
easyexceptionsfundamentalsChecked vs unchecked exceptionsWhat is the difference between checked and unchecked exceptions in Java? When should you use each?โพ
easylanguage-featuresjava10+var (local variable type inference)What does the 'var' keyword do in Java? What are its limitations?โพ
mediumgenericstype-systemGenerics and type erasureHow do Java generics work? Explain type erasure, bounded wildcards (? extends T, ? super T), and the PECS rule.โพ
mediumcollectionsdata-structuresJava Collections Framework โ List, Map, SetDescribe the main List, Map, and Set implementations in Java. How do ArrayList, LinkedList, HashMap, LinkedHashMap, TreeMap, HashSet, and TreeSet differ?โพ
mediumstreamsjava8+functionalJava 8 Streams APIHow does the Java Streams API work? Explain intermediate vs terminal operations, lazy evaluation, and common operators.โพ
mediumoptionaljava8+functionalOptional<T>What is Optional in Java? How and when should you use it?โพ
mediumlambdasfunctionaljava8+Lambdas and functional interfacesWhat is a functional interface? Name the key ones from java.util.function and explain how lambdas and method references relate to them.โพ
mediumimmutabilityoopthread-safetyImmutability in JavaHow do you design an immutable class in Java? What are the rules and why does immutability matter?โพ
mediummemorygcjvmJava Memory Model and garbage collectionDescribe the JVM memory areas (heap, stack, metaspace). How does garbage collection work and what are the main GC algorithms?โพ
mediumconcurrencyjvmthread-safetyConcurrency basics โ synchronized, volatile, and happens-beforeWhat do synchronized and volatile mean in Java? Explain the happens-before relationship in the Java Memory Model.โพ
mediumrecordsjava16+oopRecords (Java 16)What are Java records? What do they provide automatically and what are their limitations?โพ
hardgenericstype-systemadvancedGenerics โ wildcards, capture, and heap pollutionExplain wildcard capture, unchecked warnings, heap pollution, and the @SafeVarargs annotation.โพ
hardsealed-classespattern-matchingjava17+Sealed classes and pattern matchingWhat are sealed classes in Java? How do they interact with pattern matching in switch expressions?โพ
hardjvmclassloadingadvancedClassLoader architecture and class loadingHow does the Java ClassLoader hierarchy work? Explain the delegation model, class loading phases, and when you might write a custom ClassLoader.โพ
hardreflectionproxyadvancedframeworksReflection and dynamic proxiesHow does Java reflection work? What are dynamic proxies (java.lang.reflect.Proxy) and what are they used for?โพ
hardconcurrencyasyncjava8+advancedjava.util.concurrent โ executors, futures, CompletableFutureCompare ExecutorService, Future, and CompletableFuture. How do you compose asynchronous tasks with CompletableFuture?โพ
hardvirtual-threadsconcurrencyjava21+loomVirtual threads (Project Loom, Java 21)What are virtual threads? How do they differ from platform threads and when should you use them?โพ
hardcollectionsinternalsadvancedHashMap internals and collision handlingDescribe the internal structure of HashMap in detail. How are collisions handled, when does treeification happen, and what are the resize mechanics?โพ
hardpattern-matchingjava21+language-featuresPattern matching โ instanceof and switchExplain the evolution of pattern matching in Java from instanceof (Java 16) through switch patterns (Java 21). What are deconstruction patterns?โพ
hardjvmperformancejitadvancedJIT compilation and performanceHow does the JVM's JIT compiler work? Explain tiered compilation, inlining, escape analysis, and how to interpret JVM warm-up.โพ