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 CRT-450 Dumps Valid Version with 372 Q&As

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

Exit mobile version