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
9 months agoLasandra
9 months agoToi
10 months agoDorsey
10 months agoJutta
10 months agoElly
10 months agoHui
10 months agoSage
10 months agoAimee
10 months agoKiley
10 months agoVenita
10 months ago