Notifications
Clear all
Topic starter
23/10/2022 1:11 am
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
Suggested Answer: C