Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlinvalue class codegenSingle-choice MCQ

A `@JvmInline value class` wraps an `Int` and is used as the element type of an array via `Array<Id>` versus `IntArray`-style specialization. For `Array<Id>`, what is the element representation, and why?

@JvmInline value class Id(val raw: Int) fun make(): Array<Id> = arrayOf(Id(1), Id(2))