Pregunta de entrevista de Manhattan Associates

When would you use a HashMap vs an ArrayList?