Java & JVM
The Java language, collections and algorithms, concurrency, the JVM and memory.
- 99
- 37
- 45
- 17
Java Core
Open topicHow Java runs
From source to the JVM, stack and heap, picking a Java version.
Junior2Middle1View questions · 3 questionsTypes and operators
Primitives, casting, autoboxing, overflow, money and arrays.
Junior7Middle2View questions · 9 questionsStrings and equality
== vs equals, the string pool, StringBuilder, the equals/hashCode contract.
Junior2Middle2View questions · 4 questionsClasses, enums and records
final, nested classes, records, immutability and sealed types.
Junior4Middle2Senior1View questions · 7 questionsExceptions
Checked vs unchecked, try-with-resources and what exceptions cost.
Junior1Middle1Senior1View questions · 3 questionsGenerics
Generic classes and methods, PECS, type erasure.
Junior1Middle2View questions · 3 questionsLambdas and streams
Functional interfaces, streams, Optional, collectors, parallel streams.
Junior2Middle4View questions · 6 questionsDates and times with java.time
Instant, LocalDate, ZoneId and time conventions across services.
Junior2Middle1Senior1View questions · 4 questionsReflection and annotations
How frameworks use reflection, and what annotation processors do instead.
Middle2View questions · 2 questionsPerformance and Java upgrades
Moving from Java 8 to a newer LTS, and whether streams are slower than loops.
Senior2View questions · 2 questions
Collections & DSA
Open topicChoosing the right collection
List, Set, Map, Queue: what each one is for.
Junior5View questions · 5 questionsSorting and comparing
Comparable, Comparator, TimSort, merge sort and quicksort.
Junior2Middle2View questions · 4 questionsInside HashMap
Buckets, treeification, compute/merge and mutated keys.
Middle3View questions · 3 questionsCollections across threads
Fail-fast iterators, thread-safe maps and ConcurrentHashMap internals.
Middle3View questions · 3 questionsCommon algorithms
Big-O, recursion, binary search, trees, graphs, heaps and DP.
Junior4Middle4View questions · 8 questionsDesign problems
An LRU cache and sorting a file bigger than RAM.
Middle1Senior1View questions · 2 questions
Concurrency
Open topicThread basics
Processes and threads, thread states, handling interrupts.
Junior2Middle1View questions · 3 questionsLocks and shared state
Race conditions, synchronized, volatile, CAS, locks, deadlock and false sharing.
Junior2Middle3Senior2View questions · 7 questionsThread pools and coordination
Executors, latches/semaphores, pool sizing, exceptions on other threads, ThreadLocal.
Junior1Middle3Senior1View questions · 5 questionsAsync code and virtual threads
CompletableFuture, @Async, parallel calls with timeouts, virtual threads.
Middle2Senior2View questions · 4 questions
JVM
Open topicMemory, class loading, GC and JIT
Memory areas, class loading, how GC finds garbage, JIT, G1 vs ZGC.
Middle3Senior2View questions · 5 questionsThe OS under the JVM
Virtual memory, file descriptors and I/O models.
Middle3View questions · 3 questionsTroubleshooting the JVM in production
OutOfMemoryError, RSS on Kubernetes, 100% CPU and Tomcat limits.
Senior4View questions · 4 questions