Kotlin Practice Test
Kotlin Kotlin Coroutines 3
What is the difference between `StateFlow` and `SharedFlow` in Kotlin?
Select your answer
A
StateFlow is hot and holds state; SharedFlow is cold and stateless
B
StateFlow holds the latest value and replays it to new collectors; SharedFlow is configurable
C
There is no difference
D
SharedFlow holds state; StateFlow does not
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49