Exam4Training

What is the result of running this Apex?

An org has a single account named ‘NoContacts’ that has no related contacts.

Given the query:

List<Account> accounts = [Select ID, (Select ID, Name from Contacts) fromAccount where Name=‘NoContacts’];

What is the result of running this Apex?
A . accounts[0].contacts is invalid Apex.
B . accounts[0].contacts is an empty Apex.
C . accounts[0].contacts is Null.
D . A QueryException is thrown.

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