1Z0-829 • Practice Test 22
Free 1Z0-829 practice test — 15 questions with explanations. Set 22. No signup required.
Which of the following correctly describes the behavior of the following code? List<String> list = new ArrayList<>(); list.add("A"); list.add("B");
for (String s : list) {
if (s.equals("A")) {list.remove(s);
}
}System.out.println(list);