Domanda di colloquio di Manhattan Associates

When would you use a HashMap vs an ArrayList?