Salesforce
PDII · Question #168
If you have a method "doStuff(List<sObject> records)", which is a valid call?
The correct answer is A. doStuff([Select Id From Account]). See the full explanation below for the reasoning.
Question
If you have a method "doStuff(List<sObject> records)", which is a valid call?
Options
- AdoStuff([Select Id From Account]);
- BdoStuff(List<Account> records);
- CdoStuff(Account acct);
- DdoStuff(sObject obj);
How the community answered
(25 responses)- A72% (18)
- B4% (1)
- C16% (4)
- D8% (2)
Community Discussion
No community discussion yet for this question.