Exam4Training

What does the query return if there is no Contact with the last name ‘Smith’?

A developer has the following query: Contact c = [SELECT id, firstname, lastname, email FROM Contact WHERE lastname = ‘Smith’];

What does the query return if there is no Contact with the last name ‘Smith’?
A . A contact initialized to null.
B . An error that no rows are found.
C . An empty List of Contacts.
D . A Contact with empty values.

Answer: B

Latest DEX-450 Dumps Valid Version with 456 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version