DeHaat | SDE-3 Android | Gurugram, India | May 2022 [First Round]
Anonymous User
690

CoRoutine Kotlin Questions

  1. what is coroutine
  2. 10 secs work in Dispatchers.Main
  3. suspend vs normal method
  4. Dispatchers.Main - suspend method - Dispatchers.IO scope
  5. execution inside Dispatchers.Main scope
  6. NetworkOnMainThreadException, ANR scenarios with coroutines and RetroFit
  7. withContext

Other Questions

  1. looper and handler
  2. what is service? what thread it runs on? Why do long operation on service if activity and service both run on Main Thread
  3. service class lifecycle methods
  4. MutableList vs ArrayList https://stackoverflow.com/questions/43114367/difference-between-arrayliststring-and-mutablelistofstring-in-kotlin
  5. lateinit vs lazy
  6. can lateinit var be nullable? what about lateinit val?
  7. sharedViewModel between fragments, how to communicate when top fragment wants to communicate with just below fragment when back button is pressed
  8. add vs replace fragment https://stackoverflow.com/questions/18634207/difference-between-add-replace-and-addtobackstack
  9. when to use replace fragment method (explain use case)
  10. data class - constructor minimum arguments required, field declaration inside data class, why use data class, toString and equals method
  11. WorkManager
  12. Extension method inner working
  13. 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.

Comments (1)