Kotlin Practice Test
Kotlin Kotlin Type System and Null Safety 3
What is the key difference between `Any` and `Any?` in Kotlin?
Select your answer
A
Any can hold null while Any? cannot
B
There is no practical difference
C
Any? is the supertype of all types including nullable, while Any excludes null
D
Any is for objects only while Any? includes primitives
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 Study This Quiz as Flashcards →