CoRoutine Kotlin Questions
- what is coroutine
- 10 secs work in Dispatchers.Main
- suspend vs normal method
- Dispatchers.Main - suspend method - Dispatchers.IO scope
- execution inside Dispatchers.Main scope
- NetworkOnMainThreadException, ANR scenarios with coroutines and RetroFit
- withContext
Other Questions
- looper and handler
- what is service? what thread it runs on? Why do long operation on service if activity and service both run on Main Thread
- service class lifecycle methods
- MutableList vs ArrayList https://stackoverflow.com/questions/43114367/difference-between-arrayliststring-and-mutablelistofstring-in-kotlin
- lateinit vs lazy
- can lateinit var be nullable? what about lateinit val?
- sharedViewModel between fragments, how to communicate when top fragment wants to communicate with just below fragment when back button is pressed
- add vs replace fragment https://stackoverflow.com/questions/18634207/difference-between-add-replace-and-addtobackstack
- when to use replace fragment method (explain use case)
- data class - constructor minimum arguments required, field declaration inside data class, why use data class, toString and equals method
- WorkManager
- Extension method inner working
- object keyword in kotlin, companion keyword, difference between both. Singleton pattern in Kotlin
Feedback - not able to answer in depth. Individual Contributor role(Principal Engineer) requires in depth knowledge of these topics at-least. If you were applying for lead role then it seems ok.