Android & Jetpack Compose (50 Qs)•Part 3: ART Internals, Memory Leak Profiling & Production Hardening (25 - 35)
What is the difference between Cold Start, Warm Start, and Hot Start?
senior LevelPerformanceMemory Management
In Simple Words:
- Cold Start (Slowest): App launches from scratch. System must create a new OS process, initialize the
Applicationclass, and inflate the first Activity. - Warm Start: App process is already in memory, but the Activity was destroyed and must be recreated (e.g. rotation, or returning after background kill).
- Hot Start (Fastest): App and Activity are already resident in memory; system simply brings the Activity back to the foreground (
onStart()->onResume()).