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 main difference between ArrayList and LinkedList?
Think about how data is stored and accessed in each.
What happens when you add a duplicate to a HashSet?
Consider what HashSet's purpose is regarding duplicates.
What is the primary use of a HashSet?
Think about the properties of a set.
True or False: An ArrayList can contain null values.
Consider what data types can be stored.
Create a program that manages a list of students using ArrayList and allows adding/removing students. What happens if a student is added twice?
Consider using a condition and a method to determine if the name already exists.
Design a phone book application using a HashMap. How will you handle scenarios where a user tries to add an existing entry?
Think of the scenarios where verification is necessary.
5 more questions in this section. Enroll free to practise them all.
Enroll free