Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyKotlindata classesSingle-choice MCQ

Given this data class, what is the exact output of println(p)?

data class Point(val x: Int, val y: Int) val p = Point(1, 2) println(p)