Difference between Arraylist and Mutablelist in Kotlin

Asked

Viewed 373 times

2

Arraylist is a changeable list and Mutablelist is also, but what is the difference between them?

2 answers

2

Mutablelist is a type of Generic List, ja Arraylist is a more specific type...

When you create a MutableList you say you don’t care about the kind of implementation of the list, ja na ArrayList you say you specifically want an Arraylist yourself.

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.