Working with Lists
and Maps
, I started thinking, why Map method for adding Object
is called put and for List it is add
?
It is just developers will, or there was something under naming those methods different.
May be the methods names let the developer know while adding to Map
/List
what kind of data structure he is working with?
Or those names describes the way they works?
The difference is :