Large arrays (e.g., `byte[]`), extensive `HashMap` or `ArrayList` usage, and the memory overhead of wrapper objects for primitives frequently exhaust heap space.
Open the full topic