Salesforce DEX-450 Exam - Topic 4 Question 36 Discussion
Given:Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM Account]);What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)
A) for (ID accountID : accountMap.keySet()) {...} and B) for (Account accountRecord : accountMap.values()) {...} and C) for (Integer i=0; I < accountMap.size(); i++) {...}
D) for (ID accountID : accountMap) {...}
E) for (Account accountRecord : accountMap.keySet()) {...}
Roselle
7 months agoLasandra
7 months agoToi
8 months agoDorsey
8 months agoJutta
8 months agoElly
8 months agoHui
8 months agoSage
8 months agoAimee
8 months agoKiley
8 months agoVenita
9 months ago