Given the following code, what value will be output in the logs by line #8?
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
Answer: C
Latest PDII Practice Questions with 280 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments