List, Set and Map in Salesforce
List: List is a ordered collection of values. It contains duplicate values. Each value is retrieved using the List Index. Ex: List<String> temp = new List<String>(); temp.add('Newyork'); temp.add('Miami'); temp.add('Boston'); Set: ....