Advanced Kotlin
Q71 / 100

What is the difference between cold and hot Flows?

Correct! Well done.

Incorrect.

The correct answer is B) Cold flows produce values on demand (new producer per collector); hot flows produce values regardless of collectors and share them

B

Correct Answer

Cold flows produce values on demand (new producer per collector); hot flows produce values regardless of collectors and share them

Explanation

Regular flow {} is cold — it starts fresh for each collector. StateFlow and SharedFlow are hot — they exist independently of collectors and share emissions.

Progress
71/100