2
Arraylist is a changeable list and Mutablelist is also, but what is the difference between them?
2
Arraylist is a changeable list and Mutablelist is also, but what is the difference between them?
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
MutableList is a interface.
ArrayList is a guy that implements the interface MutableList.
That is to say, MutableList only defines contracts, defines what must be done. Already ArrayList implements what must be done, according to the specification (contract) MutableList.
Some posts that talk more about this:
Browser other questions tagged kotlin
You are not signed in. Login or sign up in order to post.