Skip to main content
InterviewHubPRO
Section Overview
Q18

Question 18 of 50

Part 2: Coroutines, Flow & Concurrency Architecture (11 - 24)

36%
Kotlin & Coroutines (50 Qs)•Part 2: Coroutines, Flow & Concurrency Architecture (11 - 24)

What is Kotlin Flow and how do Cold Streams differ from Hot Streams?

senior LevelSystem Design

In Simple Words:

  • Cold Stream (Flow): Does not produce items until a terminal operator (collect) is called. Each collector starts an independent execution.
  • Hot Stream (StateFlow, SharedFlow): Produces items regardless of whether subscribers are currently listening.