Skip to main content
InterviewHubPRO
Section Overview
Q6

Question 6 of 50

Part 1: Core Language, Type System & Syntax (1 - 10)

12%
Kotlin & Coroutines (50 Qs)•Part 1: Core Language, Type System & Syntax (1 - 10)

How do Extension Functions work under the hood in Kotlin?

senior LevelkotlinCore Language

In Simple Words: Extension functions do not modify the target class. The compiler translates fun String.removeSpaces() into a static method with the receiver instance passed as the first argument (public static String removeSpaces(String $this)).