Concepts · Java

Java fundamentals

Revision notes on how Java works underneath: the questions that come up when an interviewer goes deeper than the code.

01

JVM internals

Class loading, runtime memory areas, bytecode and the JIT.

jvmmemoryjit
02

Collections

List, Set, Map and Queue, their main implementations, and how HashMap works.

collectionshashmapdata structures
03

Garbage collection

Generational GC, the main collectors, and how to reason about pauses.

gcmemoryperformance
04

Concurrency

Threads, synchronization, the memory model, executors and the concurrent utilities.

concurrencythreadslocks