Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is the primary purpose of a Set?
Think about its uniqueness characteristic.
Name one class that implements the List interface.
Recall the types of lists.
What method retrieves the first key greater than or equal to a given key in a NavigableMap?
Think about what you want to achieve with the key bounds.
True or False: The ArrayList is synchronized by default.
Consider the default nature of collections.
Design a method that takes a List of Employees and returns a List sorted by their years of experience in descending order. Explain your thought process.
Consider how you would reverse the order of sorting.
Build a thread-safe user registration system using ConcurrentHashMap where user emails are the keys. Discuss potential pitfalls.
Think about how concurrent modifications to the map could affect your data integrity.
4 more questions in this section. Enroll free to practise them all.
Enroll free