Many things you need to know, 1) IF you store just one object, use List, if you have two object key and value use Map. 2) List is ordered, your objects will be stored in the order on which they are inserted, Map is not ordered, unless you use sorted ones. Source: See List vs Set vs Map
R
RohitS5
@RohitS5