Kotlin Coroutines and Flow
Asynchronous programming with Coroutines: launch, async, suspend functions, Dispatchers, Flow, StateFlow, SharedFlow
20 면접 질문·
Mid-Level
1What is a coroutine in Kotlin?
1
What is a coroutine in Kotlin?
답변
A coroutine is a lightweight thread that allows writing asynchronous code sequentially. It can be suspended without blocking the thread, allowing other tasks to execute. More efficient than traditional threads.
2What is the difference between launch and async?
2
What is the difference between launch and async?
답변
launch starts a coroutine that doesn't return a result (returns a Job). async starts a coroutine that returns a result via a Deferred (await()). Use async when you need the result.
3What is the suspend keyword used for?
3
What is the suspend keyword used for?
답변
suspend marks a function that can be suspended and resumed later without blocking the thread. These functions can only be called from other suspend functions or coroutines. They enable asynchronous operations.
4
What is a Dispatcher in coroutines?
5
When to use Dispatchers.IO?
+17 면접 질문
기타 Android 면접 주제
Android Fundamentals
Junior
24개 질문Android UI and Resources
Junior
30개 질문Android Lifecycle
Junior
30개 질문Android Navigation
Junior
26개 질문Android Data Management
Junior
29개 질문Android Networking
Junior
29개 질문Android Testing
Junior
28개 질문Android Gradle
Junior
26개 질문Kotlin Language Essentials for Android
Junior
24개 질문Room Database
Mid-Level
25개 질문Background Work
Mid-Level
18개 질문Jetpack Compose
Mid-Level
28개 질문Permissions and Device Features
Mid-Level
21개 질문Firebase for Android
Mid-Level
23개 질문Android MVVM Architecture
Mid-Level
18개 질문Advanced Android Networking
Mid-Level
13개 질문Kotlin Collections and Operators
Mid-Level
20개 질문Android Dependency Injection
Mid-Level
15개 질문Android MVI Architecture
Mid-Level
17개 질문Android Clean Architecture
Senior
21개 질문Android Compose Advanced
Senior
17개 질문Android Performance and Monitoring
Senior
13개 질문Android Security and Privacy
Senior
18개 질문Android CI/CD and Release
Senior
15개 질문Android UX and Form Factors
Senior
18개 질문Android Testing Advanced
Senior
18개 질문