Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyKotlinnull safety and double bangSingle-choice MCQ

What is the type of x after this line, and does it compile?

val name: String? = "Sam" val x = name!!