A developer is debugging the following code to determine why Accounts are not being created. Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be altered to help debug the issue?
A. Add a System.debug() statement before the insert method.
B. Collect the insert method return value in a SaveResult record.
C. Set the second insert method parameter to TRUE.
D. Add a try/catch around the insert method.
Suggest answer: B
Reference:
No comments:
Please share to make the community better.