Loading…
Loading…
Ten exam-style questions on HashSet, LinkedHashSet and TreeSet ordering and rules, Set.of and Set.copyOf, Queue methods that throw or return null, Deque methods at both ends, stack operations, and ArrayDeque versus LinkedList, with explanations.
Practice questions for the article Java Set, Queue and Deque: HashSet, TreeSet, ArrayDeque and Their Methods.
For deques, draw the elements from front to back after every call. Aim for at least 8 out of 10.
Quiz path: step 62. Take the quizzes in this order, after reading each article.
Previous quiz: The List Interface (OCP 21)
Next quiz: The Map 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.