Is List:ArrayList::Map:HashMap ?
And if not, what are the differences in how these relate to each other?
feedback
|
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
I believe an ArrayList implements the List interface and is a collection of objects which you can access using an index just like an 'array'. HashMap implements the Map interface and maps keys to values just like a 'hashtable'. | |||
feedback
|
Yes. Just as an ArrayList is an implementation of the List interface, similarly, HashMap is an implementation of the Map interface. | |||
feedback
|
If you're asking whether or not HashMap implements the Map interface, like ArrayList implements the List interface, then yes.
| |||
feedback
|
Yes. An ArrayList is a concrete implementation of a List, and a HashMap is a concrete implementation of a Map. | |||
feedback
|
List and Map are interfaces their implementations are ArrayList and HashMap | |||
feedback
|