1. What is a memory leak?
When a computer program or application does not free up the memory which they allocated for performing an operation then memory leak occurs. Inner classes created inside activity hold implicit reference to activity object. If activity destroyed and inner class still in memory then it prevents activity object to be freed from memory causing a leak.
2. What is ANR in Android?
When UI thread is occupied for long time then Application Not Responding dialog pops up. Several reasons like network or database operation on UI thread, performing computationally intensive tasks in UI thread like complex mathematical calculation, bitmap manipulation can lead to ANR.
3. What is coroutine?