Infosys interview question

Difference between set and map Spring core, annotation