1Z0-829 • Practice Test 5
Free 1Z0-829 practice test — 10 questions with explanations. Set 5. No signup required.
A developer is implementing a batch processing application that reads records from a list and processes them. The method uses a for loop with an index variable. Inside the loop, if a record is null, the developer wants to skip that iteration and continue with the next index. The developer writes: for (int i = 0; i < records.size(); i++) { if (records.get(i) == null) continue; process(records.get(i)); updateCounter(); } However, the counter is not updated correctly. The developer expects the counter to reflect the number of processed (non-null) records. What is the problem?
Choose an answer to begin — your selection is scored in the full session.
10 questions · instant feedback and full explanations after every question.