
Explain how memory should be managed in a mobile application. Cover object lifecycles, leak prevention, large resources such as images, and how data structures like arrays, hash-table caches, and queues can either help or hurt memory usage.
How objects are created and released across screen or component lifecyclesHow leaks happen through listeners, callbacks, closures, or globalsHow to manage caches without unbounded growthHow queued background work can create memory pressureHow to handle large resources efficientlyUnderstanding of memory ownership and retentionAbility to reason about arrays, hash tables, and queues in real systemsPractical strategies for preventing crashes and performance degradation