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
36 Views
Rayford
(@pesterfieldrayford)
Noble Member
Joined: 7 months ago
Posts: 346
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
Share: