Explain the different scenarios wherein you need to use different types of collections i.e list, set and map?
Answer / Naeem Akhatar
Lists are used when you want to maintain the order of elements. Sets are used when you want to ensure unique values without any particular order. Maps are used to store key-value pairs where keys must be unique.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we deploy components to production org ? : salesforce lightning component
Can we create master detail relationship between two standard objects?
What are groups in sfdc and what is their use in salesforce?
How to identify if a class is a test class? : salesforce crm
What are the different ways to Share a record?
What is wrapper class in apex salesforce ?
How can we fetch top 5 opportunity according to the amount?
Explain the static methods and variables in salesforce?
What the concurrent request limit is and why it exists in salesforce?
What is the use force:hasrecordID?
What is the maximum size of the pdf generated on visualforce attribute renderas ?
How to get the userid of all the currently logged in users using apex code?