07-20-2023, 04:10 PM
I was reading a kotlin documentation about differences between Java and Kotlin here
[
[star-projection][2] and honestly I can't see the difference. Can somebody explain to me how this
List<?> list;
differs from this
lateinit var list: MutableList<*>
[1]:
[
[To see links please register here]
][1]. It was stated there that **Kotlin does not have wildcard-types**. However after reading carefully through the documentation of generics I have found information about[star-projection][2] and honestly I can't see the difference. Can somebody explain to me how this
List<?> list;
differs from this
lateinit var list: MutableList<*>
[1]:
[To see links please register here]
[2]:[To see links please register here]