Loading…
Loading…
Ten exam-style questions on the Collections Framework interfaces, generics with diamond and var, and the Collection methods add, remove, contains, removeIf, forEach, iterators, equals, null unboxing and unmodifiable collections, with explanations.
Practice questions for the article Java Collections Framework: The Collection Interface and Common Methods.
Track each collection's contents line by line, and note the boolean that each method returns. Aim for at least 8 out of 10.
Quiz path: step 60. Take the quizzes in this order, after reading each article.
Previous quiz: Chapter 8 Review: Lambdas and Functional Interfaces (OCP 21)
Next quiz: The List Interface (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.