Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlinstar projectionsSingle-choice MCQ

How does `MutableList<*>` differ from `MutableList<Any?>` when you try to add an element?

fun probe(starList: MutableList<*>, anyList: MutableList<Any?>) { // starList.add(...)? // anyList.add(...)? }