Given the following...
 
Notifications
Clear all

Given the following code, what value will be output in the logs by line #8?

1 Posts
1 Users
0 Likes
167 Views
(@pesterfieldrayford)
Noble Member
Joined: 2 years ago
Posts: 681
Topic starter  

Given the following code, what value will be output in the logs by line #8?

1 Contact con = new Contact ( LastName =fSmith', Department = fAdminT)

2 insert con;

3 Contact insertedContact=[select Name from Contact where id=icon.Id];

4 Savepoint sp_admin = Database.setSavepoint();

5 con.Department = fHRf;

6 update con;

7 Database.rollback(sp_admin);

8 System.debug(Limits.getDmlStatements 0);

  • A . 5
  • B . 3
  • C . 4
  • D . 2

Show Answer Hide Answer

Suggested Answer: C

   
Quote

Latest Salesforce PDII Dumps Valid Version

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