Java memory management, Singleton, immutability, and design patterns
Filed under Adobe
The question
Write a synchronized Singleton class with double-lock checking and early initialization, explain its garbage collection, discuss heap/stack memory management, string pool, immutability, inheritance vs composition, dependency injection, garbage collection techniques, memory leaks, HashMap internal working, hashcode/equals contract, strategy and observer patterns, and thread joining.
No write-up yet. Related questions below have one.
Related Adobe questions
Collected from public candidate posts and coding forums. Updated Nov 2026.