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 are the four main types of collections in Java?
Think about common collection usages.
What is an ArrayList?
Consider how it stores data.
Which of the following collections allows duplicate elements?
Think about how these collections store items.
True or False: A TreeMap can have null keys.
Consider how ordering affects nulls.
You need to create a shopping cart in an e-commerce application. Which collection would you choose to store items and why?
Consider the operations you need to perform.
Assuming a banking system requires uniqueness in account numbers and needs to maintain their order, which collections would best suit this requirement?
Think about uniqueness and order.
4 more questions in this section. Enroll free to practise them all.
Enroll free