Loading…
Loading…
Ten exam-style questions on ArrayList and LinkedList, Arrays.asList, List.of and List.copyOf, index-based list methods, the overloaded remove, indexOf, replaceAll and toArray, with explanations.
Practice questions for the article Java List Interface: ArrayList, LinkedList, Factory Methods and List Operations.
Write the list's contents after every line, and watch for int versus Integer arguments to remove. Aim for at least 8 out of 10.
Quiz path: step 61. Take the quizzes in this order, after reading each article.
Previous quiz: Collections Framework Basics (OCP 21)
Next quiz: Sets, Queues and Deques (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.