What is the value of "i" printed by the System.debug - ProProfs Discuss
Topics
Products
Follow Us:

What is the value of "i" printed by the System.debug statement, if the value of "j" is 2 at the end of thetransaction?insert new Account[]{new Account(Name = 'yyy'), new Account(Name = 'yyy')};integer i = 0;integer j;for (Account[] tmp : [SELECT ID FROM Account WHERE Name = 'yyy')j=tmp.size();i++;System.debug(i);



A. 0
B. 2
C. 1
D. 3

This question is part of PD2-2
Asked by Pal, Last updated: Jul 01, 2020

+ Answer
Request

1 Answer

Pal

Pal

Answered Jan 10, 2018

1
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.