every note, in one binder ✎

Developer interview notes & guides — Page 6

Focused explanations and longer guides, with worked scenarios, common mistakes and interview exercises across every chapter.

read ✓Java · mid

Java Comparators and Ordered Collections

Why TreeSet and TreeMap drop elements when a Comparator disagrees with equals, and how to write comparators that obey the full contract.

~6 min readread →
read ✓Java · hard

Java CompletableFuture Error Composition

How exceptions travel through CompletableFuture chains, when to use exceptionally, handle or whenComplete, and why causes arrive wrapped.

~7 min readread →
read ✓Java · hard

Java Garbage Collection and Retained Objects

How Java memory leaks happen despite garbage collection: GC roots, reachability, retained size, and finding the reference chain in a heap dump.

~8 min readread →
read ✓Java · easy

Java Immutable Objects and Defensive Copies

How to make a class immutable in Java: final fields, no setters, defensive copies of mutable inputs and outputs, and safe publication.

~6 min readread →
read ✓Java · hard

Java Time Types and Zone-Aware Decisions

When to use Instant, LocalDateTime, ZonedDateTime and OffsetDateTime, and how daylight saving gaps and overlaps break naive date code.

~7 min readread →
read ✓Java · mid

Java Thread Visibility and Happens-Before

Why one Java thread may never see another's write, what volatile guarantees, and how happens-before rules make publication safe.

~7 min readread →
read ✓Java · hard

Java Virtual Threads and Blocking Workloads

When Java 21 virtual threads help, why they do not speed up CPU-bound work, and how pinning, pooling and resource limits trip teams up.

~8 min readread →
read ✓JavaScript · easy

JavaScript Array Copies and Shared Objects

Why [...arr] and slice() copy the array but not the objects inside it, and how to choose a targeted update, structuredClone or JSON safely.

~7 min readread →
read ✓Node.js · easy

Node.js Blocking Work and Request Latency

Why a 170 ms synchronous loop in one Node.js request delays every other request, how to measure loop delay, and when to chunk or use workers.

~6 min readread →
read ✓Node.js · mid

Node.js Child Processes and Argument Safety

How a filename becomes shell injection with exec, why execFile and spawn with argument arrays avoid it, and the -- trick for argument injection.

~6 min readread →
read ✓Node.js · hard

Node.js File Paths and Traversal Prevention

Why path.join doesn't stop ../ traversal, how a startsWith check and a symlink both leak files, and a Node.js containment check that holds up.

~6 min readread →
esc