Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlincompanion object as a JVM classSingle-choice MCQ

What extra synthetic member does the compiler emit for a non-`const` companion `val` so Java callers and the JVM can reach it, given the property's backing field lives in the companion?

class Config { companion object { val token: String = compute() } // Java: Config.Companion.getToken()? or Config.getToken()? }