Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the primary feature of an ArrayList?
Think about if you can add more items beyond its initial size.
Can a HashSet contain duplicate elements?
Remember what happens if you try to add the same item twice.
What is the primary benefit of using a HashSet?
Think about what sets are traditionally used for.
True or False: An ArrayList can grow and shrink in size dynamically.
Reflect on how you might add items without knowing the total.
Design a small program using ArrayList to manage a grocery list that allows adding, removing, and viewing items. How does the underlying structure support these operations?
Consider how items are stored based on their positions.
Create a scenario using HashMap to link employee IDs with names. How would you ensure that data integrity is maintained?
Think about how you would search for an employee in a directory.
4 more questions in this section. Enroll free to practise them all.
Enroll free