Your question is What is the difference between an ArrayList and a Map. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
What is the difference between an ArrayList and a Map?
Explain how each collection stores and retrieves data, including the role of ordering, indexing, and keys. Give a concrete example of when you would choose ArrayList over Map, and identify the typical Java implementations involved.
Scope: Java Collections Framework, including ArrayList, Map, and HashMap.