Skip to main content
InterviewHubPRO
Section Overview
Q13

Question 13 of 50

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

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

What are Reified Type Parameters (inline fun <reified T>) in Kotlin and how do they bypass type erasure?

senior LevelSystem Design

In Simple Words: Because inlined functions copy bytecode directly to the call site, marking a type parameter reified allows the compiler to inject the concrete class literal (T::class.java) directly into the calling bytecode, bypassing JVM type erasure!