Given the following Apex statement:
Account myAccount = [SELECT Id, Name FROM Account]; What occurs when more than one Account is returned by the SOQL query?
A. The variable, myAccount, is automatically cast to the List data type.
B. The first Account returned is assigned to myAccount.
C. The query fails and an error is written to the debug log.
D. An unhandled exception is thrown and the code terminates.
CRT-450: Salesforce Certified Platform Developer IFree dumps for CRT-450 in PDF format.High quality CRT-450 PDF and software. VALID exam to help you pass. |
Exception thrown – List has more than 1 row for assignment to SObject